Added conversion from jsonarray to json object