<s> """<STR_LIT>""" <EOL> from __future__ import print_function , division , absolute_import , unicode_literals <EOL> from future import standard_library <EOL> standard_library . install_aliases ( ) <EOL> from builtins import * <EOL> from io import StringIO <EOL> from tokenize import generate_tokens <EOL> import json <EOL> def to_json ( s ) : <EOL> """<STR_LIT>""" <EOL> out = [ ] <EOL> for t in generate_tokens ( StringIO ( s ) . readline ) : <EOL> if out and any ( ( ( '<STR_LIT:U+002C>' == t [ <NUM_LIT:1> ] == out [ - <NUM_LIT:1> ] ) , <EOL> ( out [ - <NUM_LIT:1> ] == '<STR_LIT:[>' and t [ <NUM_LIT:1> ] == '<STR_LIT:U+002C>' ) , <EOL> ) ) : <EOL> out . append ( '<STR_LIT:null>' ) <EOL> out . append ( t [ <NUM_LIT:1> ] ) <EOL> return '<STR_LIT>' . join ( out ) <EOL> def loads ( s ) : <EOL> return json . loads ( to_json ( s ) ) </s>
