Is it possible to encode a C char array (char*) in JSON in order to send it through a TCP socket? If so how can i make it and which would be a simple json library to use?