lib/json: Added ad-hoc string parser for JSON