finished conversion to json-p
fixed missing comma