GeistHaus
log in · sign up

µjson - A minimal JSON parser and transformer in Go

iolivernguyen.github.io

µjson is a minimal JSON parser and transformer that works on unstructured (and trusted) JSON. It works by parsing input and calling the given callback function when encountering each item. Motivation Sometimes we just want to make some minimal changes to a JSON document or do some generic transformations without fully unmarshalling it. For example, removing blacklisted keys from response JSON. Why spend all the cost on unmarshalling into a map[string]interface{} just to immediately marshal it again. The following code is taken from StackOverflow:

0 pages link to this URL

No pages have linked to this URL yet.