tested json serialization of strings, byte[] and stream