When serializing and then deserializing KVPs and emitting the Type information, if any key besides “key” or “value” is found, it throws. I think the code should ignore “__type”, no?
Below is an example of JSON serialized with type info that’s causing the throw.
FYI the JSON.parse() JS Util is generally better suited for parsing adhoc JSON as you don’t need to specify the Type and it preserves the type of the JSON instead of coercing values into a string.