
Implement parse_json_map, a strict parser for a tiny JSON-like data format.
parse_json_map(dst, stream containing "{\"name\":\"Ada\",\"score\":9}")Expected result
{"name":"Ada","score":9}For your own tracking. Tests grade your code.
parse_json_map(dst, stream containing "{\"x\":}")Expected result
Invalid token '}'\nExpected files
json_map_parser.cjson_map_parser.hAllowed functions
getcungetcprintfmalloccallocreallocfreeisdigitfscanfwrite
v0.40: Create exercises. Challenge the community.
Meet Studio →Implement parse_json_map, a strict parser for a tiny JSON-like data format.
parse_json_map(dst, stream containing "{\"name\":\"Ada\",\"score\":9}")Expected result
{"name":"Ada","score":9}For your own tracking. Tests grade your code.
parse_json_map(dst, stream containing "{\"x\":}")Expected result
Invalid token '}'\nExpected files
json_map_parser.cjson_map_parser.hAllowed functions
getcungetcprintfmalloccallocreallocfreeisdigitfscanfwrite
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.