Convert to ruby hash, then call to_json