Problem with to_json solved