Adding doc for build_json method