if its a hash, call #hash_to_json with that hash