You should use JSON.stringify() before setting it to environment variable.
Then after you call it in next request, use JSON.parse() to recreate the object.
Hope it helps.
More Related Contents:
- Parsing JSON with Unix tools
- How to escape special characters in building a JSON string?
- Importing local json file using d3.json does not work
- JSON Invalid UTF-8 middle byte
- JSON Naming Convention (snake_case, camelCase or PascalCase) [closed]
- How to import JSON File into a TypeScript file?
- Could not load file or assembly ‘Newtonsoft.Json’ or one of its dependencies. Manifest definition does not match the assembly reference
- Unix command-line JSON parser? [closed]
- How to serialize or convert Swift objects to JSON?
- Unmarshaling nested JSON objects
- JSON undefined value type
- Deserializing JSON using JSon.NET with dynamic data
- How to use Newtonsoft.Json as default in Asp.net Core Web Api?
- Cannot set content-type to ‘application/json’ in jQuery.ajax
- Flutter FormatException: Unexpected character (at character 1)
- PowerShell : retrieve JSON object by field value
- Convert a JSON array to a bash array of strings
- How to parse json and read in vb.net
- Which Perl module would you recommend for JSON manipulation?
- Spring REST service: retrieving JSON from Request
- Encode/Decode Array of Types conforming to protocol with JSONEncoder
- How to exclude properties from Swift Codable?
- JSON Parsing in Swift 3
- How can I use JSON on the web page from a source with neither CORS nor JSONP? [closed]
- Grails JSONBuilder
- Angular: Typescript casting JSON response as object model not working
- Can Server Sent Events (SSE) with EventSource pass parameter by POST
- alamofire.error Code=-6006 “JSON could not be serialized
- How to preserve integer data type when exporting to JSON?
- include class name in all objects serialized by jackson