changed to_s -> to_json <=> bugfix
copypaste fix