Skip to content
Snippets Groups Projects
Commit 4cb9cea5d889 authored by Kevin LaFlamme's avatar Kevin LaFlamme
Browse files

Add support for preprocessed JSON strings (with optimizations) in encoder

In some situations, you may have a large python dictionary you need to JSONify but one of the values inside the dict is already a JSON string. This is common when pulling an object from a database, for example, where one of the fields is a JSON blob/string. Previously you would have to deserialize and then reserialize that string just to serialize the high level object, but obviously this is unnecessarily slow. This changes adds a method/type that can be used to wrap a str and tell the serializer to just pass it through instead.
parent 89993d328512
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment