MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / jsonpath_complex_examples

Function jsonpath_complex_examples

examples/src/jsonpath_examples.cpp:404–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void jsonpath_complex_examples()
405{
406 auto j = jsoncons::json::parse(R"(
407 [
408 {
409 "root": {
410 "id" : 10,
411 "second": [
412 {
413 "names": [
414 2
415 ],
416 "complex": [
417 {
418 "names": [
419 1
420 ],
421 "panels": [
422 {
423 "result": [
424 1
425 ]
426 },
427 {
428 "result": [
429 1,
430 2,
431 3,
432 4
433 ]
434 },
435 {
436 "result": [
437 1
438 ]
439 }
440 ]
441 }
442 ]
443 }
444 ]
445 }
446 },
447 {
448 "root": {
449 "id" : 20,
450 "second": [
451 {
452 "names": [
453 2
454 ],
455 "complex": [
456 {
457 "names": [
458 1
459 ],
460 "panels": [
461 {

Callers 1

mainFunction · 0.85

Calls 2

parseFunction · 0.85
json_queryFunction · 0.85

Tested by

no test coverage detected