new JSON struct from JS