Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2023 12:06 PM
The json is complex with nested of 10 to 15 levels. so manually defining the json schema is impossible and not maintainable since it changes.
The above code doesnt work either.
I need to think of another way.
Can I rewrite json message to another json file, just by convert the binary to json.
Whatever I try, it converts the binary data and write it as string instead of json. how can I write it as json without defining the schema for the json.
All possible way writes the base64 value as escaped string.
eg. output looks like
{
"offset": 1,
"value": "{\"key1\": \"value\"..................}"
}