Command line tool and API for parsing JSON documents