added json dump function to gms and primitives