News for hackers. Stuff that matters.
Re:Parsing Text with Nom by duped on Wednesday January 12, 2022 @10:37AM (#29907816)
This can be seen as a form of tokenization, where the JSON objects are trees of tokens.

But that said, a more apt comparison is going from text to JSON in the first place (which is not trivial to do fast, and has issues when it comes to stream parsing).

There are enormous advantages to using JSON for storing structured application data though, mostly so you don't have to worry about writing a parser for it.

There are no comments on this comment yet.