FrostCodes Active Member Licensed User Longtime User Mar 4, 2020 #1 I found out that JsonGenerator doesn't escape quotes( " and ' ) and / . Please how do i solve?
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2020 #2 Works fine: B4X: Dim jg As JSONGenerator jg.Initialize(CreateMap($"te"st"$: $""value""$)) Log(jg.ToPrettyString(4)) Output: { "te\"st": "\"value\"" } Upvote 0
Works fine: B4X: Dim jg As JSONGenerator jg.Initialize(CreateMap($"te"st"$: $""value""$)) Log(jg.ToPrettyString(4)) Output: { "te\"st": "\"value\"" }
FrostCodes Active Member Licensed User Longtime User Mar 4, 2020 #3 Hi @Erel thanks , actually my JSON data contained unprintable characters and this was the cause of the issue Upvote 0
Hi @Erel thanks , actually my JSON data contained unprintable characters and this was the cause of the issue