MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / json

Method json

subprojects/llama.cpp/common/peg-parser.cpp:1120–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118}
1119
1120common_peg_parser common_peg_parser_builder::json() {
1121 return rule("json-value", [this]() {
1122 return choice({
1123 json_object(),
1124 json_array(),
1125 json_string(),
1126 json_number(),
1127 json_bool(),
1128 json_null()
1129 });
1130 });
1131}
1132
1133common_peg_parser common_peg_parser_builder::json_string_content() {
1134 return wrap(arena_.add_parser(common_peg_json_string_parser{}));

Callers 15

tts-outetts.pyFile · 0.80
tokenizeFunction · 0.80
llamaModelInfoFunction · 0.80
visitMethod · 0.80
make_requestMethod · 0.80
make_stream_requestMethod · 0.80
mainFunction · 0.80
listMethod · 0.80
listRouterMethod · 0.80
loadMethod · 0.80
unloadMethod · 0.80

Calls

no outgoing calls

Tested by 5

test_example_nativeFunction · 0.64
test_example_qwen3_coderFunction · 0.64
test_json_serializationFunction · 0.64
test_json_parserFunction · 0.64