Gson will deserialize non-conforming single quoted JSON perfectly. Unfortunately I need to serialize a random interior object that was passed in with single quotes instead of double quotes. The output should look like the object below - see the key "second":
{
"first":{"normal":1}
"second":{'single_quoted': 'random object'}
}
Assume I already have the "second" object as a JsonObject. I know there are ways to customize the serializers, but I haven't found what I'm looking for.