lib/json: Faster `parse_json_string` implementation