add to_json to builder