added buildJsonObj()