I think would be nice to implement ease-of-use API with performance of simdjson, like i'm did ease-of-use Express.js and Performance of uWebSockets.js (my library called nanoexpress)
I like this API:
SJNO - SimdJSON Node.js Object-Wrap
Loading json - SJNO.load(jsonFile), performance should be fast even for first run
Parse json - SJNO.parse(jsonString), performance should be fast even for first run
Stringify json - SJNO.stringify(RAWObject), performance of this func also matters
[Optional, but very needed feature] Validate - SJNO.validate(jsonString | RAWJSObject, SCHEMA)
[Optional, but very needed feature] Schema - SJNO.parse(jsonString, SCHEMA) or this way improves performance also may be SJNO.validate(schema).parse(jsonString) or SJNO.validate(schema).stringify(jsonString)
Hi @croteaucarine
I think would be nice to implement ease-of-use API with performance of simdjson, like i'm did ease-of-use Express.js and Performance of uWebSockets.js (my library called nanoexpress)
I like this API:
SJNO.load(jsonFile)
, performance should be fast even for first runSJNO.parse(jsonString)
, performance should be fast even for first runSJNO.stringify(RAWObject)
, performance of this func also mattersSJNO.validate(jsonString | RAWJSObject, SCHEMA)
SJNO.parse(jsonString, SCHEMA)
or this way improves performance also may beSJNO.validate(schema).parse(jsonString)
orSJNO.validate(schema).stringify(jsonString)