Added JsVal api to make working with json structs less painful