add build_to_json function