You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API would be clearer instead of the user asking themself what that i parameter does and whether it was important or not.
It also gives you the ability to evolve the internals to add new functionality like a File field #5 or mmap support for large json files.
The text was updated successfully, but these errors were encountered:
I stumbled over this just now as well and I think I understood it correctly that s is the JSON-string to parse and i is the index on that JSON string that you're currently at.
Is my understanding there correct?
I'd be very willing to throw in another PR for a minor README.md adjustment to document the way it is at the moment and also throw in a short list for which datatypes there's already parseHooks created (so you don't have to look it up in the source code).
I have a PR #37 that hides all of that behind json context. It still does not feel like the right approach. Passing a complex object around vs two simple things feels some how worse.
It's probably better to have the API hide
s
andi
injsony/src/jsony.nim
Lines 13 to 22 in d45163b
This can be done with a lightweight parser object
The API would be clearer instead of the user asking themself what that i parameter does and whether it was important or not.
It also gives you the ability to evolve the internals to add new functionality like a File field #5 or mmap support for large json files.
The text was updated successfully, but these errors were encountered: