You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to write a string which represents nested JSON object to disk and get beginning indexes of some inner objects. The problem is that I store an inner object as string, not JSON object, in order to ensure that a digital signature function will always receive the same input. When I encode the most outer object to string, the inner one becomes escaped and I can't find initial un-escaped version in the resulting string. Consider the following example:
I want to write a string which represents nested JSON object to disk and get beginning indexes of some inner objects. The problem is that I store an inner object as string, not JSON object, in order to ensure that a digital signature function will always receive the same input. When I encode the most outer object to string, the inner one becomes escaped and I can't find initial un-escaped version in the resulting string. Consider the following example:
I'm trying to search
messageContentString
insignedMessageString
but it's escaped with backslashes and my search fails.Is there a way to un-escape resulting string so I can search inside it, or should I stop storing JSON objects as strings in general? Thanks.
The text was updated successfully, but these errors were encountered: