moved JSON serialization into helper function in ofxOSCJSONParameterSync