create JSON structs on stack