mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-03 14:40:38 +08:00
15 lines
340 B
Python
15 lines
340 B
Python
import json
|
|
from ref_resolver import RefResolver
|
|
import base64
|
|
|
|
f = open("glTF.schema.json")
|
|
j = json.loads(f.read())
|
|
|
|
# call to API resolve method
|
|
RefResolver("glTF.schema.json").resolve(j)
|
|
|
|
j_str = json.dumps(j, indent=2)
|
|
|
|
# Run json.dumps twice to get escaped string
|
|
print("const char *kglTFSchemaString = " + json.dumps(j_str) + ";\n")
|