Added echos to json_encode_object