code wiki / (root) / nx_value_parse_json_test.nx

nx_value_parse_json_test.nx

buildroot/runtime/nx_value_parse_json_test.nx

7070 B148 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic value
docsdependenciesstructsconstsfunctions

about

nx_value_parse_json_test.nx -- proves the generic JSON DOM works against REAL upstream data, not hand-coded toy strings. Reads ../nishi-library/fixtures/gbif/solanum_tuberosum.raw (a 450-byte canonical GBIF /v1/species/match response captured 2026-05-17) via sys_read_file, parses to NxValue tree, then walks the tree GENERICALLY via nx_value_object_get_string/_int -- with NO source-specific code. If this PASSes, we have a substrate that can ingest ANY JSON-shaped upstream into a typed tree.

dependencies 3 imports · 0 importers

syscalls.nx nx_value.nx nx_value_parse_json.nx nx_value_parse_json_test.nx

imports: syscalls.nxnx_value.nxnx_value_parse_json.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_value_parse_json nx_val_parse_value nx_val_parse_skip_ws nx_val_parse_is_ws nx_value_new_object nx_value_new_null nx_val_parse_string nx_value_new_string nx_value_new_null ↻ nx_val_parse_value ↻ nx_value_new_array nx_value_new_null ↻ nx_val_parse_match_lit nx_value_new_bool nx_value_new_null ↻ nx_value_new_null ↻ nx_val_parse_number nx_val_parse_is_digit nx_value_new_int nx_value_new_null ↻ nx_value_new_float_q10 nx_value_new_null ↻ nx_val_parse_is_digit ↻ nx_value_object_get_int nx_value_object_get nx_value_bytes_equal nx_value_object_get_string nx_value_object_get ↻ nx_value_object_get ↻ nx_value_array_len nx_value_array_get make_path_solanum sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close

structs

none

consts

none

functions

16func make_path_solanum(out: *u8) -> i64
called by 1: main
37func main() -> i64