<s> from st2common . util . jsonify import json_encode <EOL> __all__ = [ <EOL> '<STR_LIT>' <EOL> ] <EOL> class JsonConverter ( object ) : <EOL> def convert ( self , items_list ) : <EOL> if not isinstance ( items_list , list ) : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> json_doc = json_encode ( items_list ) <EOL> return json_doc </s>
