SAP Knowledge Base Article - Preview

2499712 - JSON encoding the \n characters error in hybrid offline application


Special characters in JSON format are not being handled correctly in the application. When reading JSON data from the UDB that contains a special character "\n" an error occurs from the JSON parsing function:

"Unexpected token in JSON"

The JSON data received from the Gateway OData service contains the correct format, but the "\n" is replaced by a control character "0xA" when querying the UDB, and this cannot be parsed by the JSON parser.



SAP Mobile Platform (SMP) SDK 3.0 SP14


SAP Mobile Platform SDK 3.0


KBA , MOB-SDK , SAP Mobile SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.