Hi I want to convert a dict to json data. But if I use the atom_json_dict and atom_json_term, the result is not correct.
I define convert_dict_to_json(Dict, Json) :- atom_json_dict(DictString, Dict,[]), atom_json_term(DictString, Json, []).
Then I call convert_dict_to_json(_{a:"a",b:"b"},X), it returns with X = json([a=a, b=b]).. In fact I think the result I want should be X = json([a="a", b="b"]).
If I want to convert dict to json correctly, i.e. X = json([a="a", b="b"]), how shall I write the convert_dict_to_json predicate?
Thank you.