JSON defines several characters (here) which must be escaped when serializing. Currently serializer handles correctly only three of them: \", \n and \.
This PR adds the rest of characters: \r, \t, \f, \b, \/.
The deserializer however works properly and does not need any changes. But I added tests just to be sure.
JSON defines several characters (here) which must be escaped when serializing. Currently serializer handles correctly only three of them: \", \n and \. This PR adds the rest of characters: \r, \t, \f, \b, \/.
The deserializer however works properly and does not need any changes. But I added tests just to be sure.