Refactor string parsing
Refactor string parsing

Instead of duplicating code for parsing JSON data into a string on heap,
extract this into a function and call it everywhere.

jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf