Hi,
I am using jayrock to implement a web service.
From the client side (mobile app) I issue a command and when there are
latin chars in the text I got a JSON Exception.
The request string is encoded as UTF8 string, use POST and request
Accept field is application/json.
request string:
{"method":"xpto","params":["capa","hello"],"id":"xpto"} -
> Success
{"method":"xpto","params":["caça","hello"],"id":"xpto"} -
> Fail
The JSON response is
{"id":null,"error":{"name":"JSONRPCError","message":"Expected a ',' or
'}'.","errors":[{"name":"JsonException","message":"Expected a ',' or
'}'."}]}}
and the JSON Exception thrown:
JSON-RPC (Error): Jayrock.Json.JsonException: Expected a ',' or '}'.
at Jayrock.Json.JsonTextReader.ParseNextMember()
at Jayrock.Json.JsonReaderBase.Read()
at Jayrock.Json.JsonReader.ReadToken(JsonTokenClass token)
at
Jayrock.Json.Conversion.Converters.AnyImporter.ImportFromString(ImportContext
context, JsonReader reader)
at
Jayrock.Json.Conversion.Converters.ImporterBase.Import(ImportContext
context, JsonReader reader)
at Jayrock.Json.Conversion.ImportContext.Import(Type type,
JsonReader reader)
at Jayrock.JsonRpc.JsonRpcDispatcher.ParseRequest(TextReader input)
at Jayrock.JsonRpc.JsonRpcDispatcher.Process(TextReader input,
TextWriter output)
Do anybody know how to fix this problem?
Thank you.
--
You received this message because you are subscribed to the Google Groups "Jayrock" group.
To post to this group, send email to jay...@googlegroups.com.
To unsubscribe from this group, send email to jayrock+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jayrock?hl=en.