Thank you for rapid reply. Second one is exactly what I wanted!
What are differences between ds_map and tj_object?
Is it okay to replace all my maps to tj_object?
I tried encode ds_map to json string like follow:
var map = ds_map_create();
ds_map_add(map, "a", 10);
ds_map_add(map, "b", "50");
var json_string = tj_encode(map);
show_debug_message( "result: "+ json_string );
and the result was :
How can I fix this?
And what does ?indent mean?