json_print_type   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/jansson.xtm

Implementation

(bind-func json_print_type
  (lambda (json:json_t*)
    (let ((type (tref json 0)))
      (cond ((= type JSON_OBJECT) (printf "JSON type: %s\n" "object"))
            ((= type JSON_ARRAY) (printf "JSON type: %s\n" "array"))
            ((= type JSON_STRING) (printf "JSON type: %s\n" "string"))
            ((= type JSON_INTEGER) (printf "JSON type: %s\n" "integer"))
            ((= type JSON_REAL) (printf "JSON type: %s\n" "real"))
            ((= type JSON_TRUE) (printf "JSON type: %s\n" "true"))
            ((= type JSON_FALSE) (printf "JSON type: %s\n" "false"))
            ((= type JSON_NULL) (printf "JSON type: %s\n" "null"))
            (else (printf "JSON error: unsupported type.\n")))
      (i64toi32 0))))


Back to Index

Similar Entries

  • CV_MAKE_TYPE    xtlang
  • CprintP    xtlang
  • CprintPd    xtlang
  • CprintPr    xtlang
  • CprintR    xtlang
  • PaDeviceInfo_print    xtlang
  • PaHostApiInfo_print    xtlang
  • PaHostErrorInfo_print    xtlang
  • PaStreamCallbackTimeInfo_print    xtlang
  • PaStreamInfo_print    xtlang
  • PaStreamParameters_print    xtlang
  • Pm_Event_Type    xtlang
  • Pm_Message_Type    xtlang
  • ShaderProgram_print_info_log    xtlang
  • Shader_print_info_log    xtlang
  • Shader_type    xtlang
  • VBO_type    xtlang
  • Vprint    xtlang
  • Widget_set_type    xtlang
  • Widget_type    xtlang
  • Widget_type_add_flags    xtlang
  • Widget_type_remove_flags    xtlang
  • _print_interface_addresses    xtlang
  • aiProcess_SortByPType    scheme
  • ai_print_export_formats    xtlang
  • bind-data-type    scheme
  • bind-data-type-constructor    scheme
  • bind-data-types    scheme
  • bind-lib-type    macro
  • bind-type    macro
  • bmType    xtlang
  • cerberus_get_filtertype    xtlang
  • cerberus_get_noisetype    xtlang
  • chunked_printf    xtlang
  • console_print    xtlang
  • constructor-name-and-type    scheme
  • curl_print_version    xtlang
  • db_print_column    xtlang
  • deconstructor-name-and-type    scheme
  • dl_filter1_type    xtlang
  • dl_filter1_type    xtlang
  • dl_filter2_type    xtlang
  • dl_filter2_type    xtlang
  • fits-file-print    xtlang
  • fits-file-print    xtlang
  • fleet_print_machines    xtlang
  • fleet_print_state    xtlang
  • fleet_print_state    xtlang
  • fleet_print_unit    xtlang
  • fleet_print_unit_state    xtlang
  • fleet_print_units    xtlang
  • g_print_value_type    xtlang
  • g_type_fundamental    xtlang
  • get_filtertype    xtlang
  • get_midi_evt_type    xtlang
  • get_noise_type    xtlang
  • get_noisetype    xtlang
  • get_type    xtlang
  • ghttp_perform_POST_json    xtlang
  • ghttp_perform_PUT_json    xtlang
  • ghttp_print_request_body    xtlang
  • ghttp_print_request_full    xtlang
  • ghttp_print_request_headers    xtlang
  • ghttp_request_body_as_json    xtlang
  • ghttp_set_content_type_html    xtlang
  • ghttp_set_content_type_json    xtlang
  • ghttp_set_content_type_octet_stream    xtlang
  • ghttp_set_content_type_plaintext    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_driver_info    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error    xtlang
  • gl_print_error_no_msg    xtlang
  • gl_print_error_with_msg    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • glfw_print_version_string    xtlang
  • glfw_print_video_mode_details    xtlang
  • godot_variant_get_type    xtlang
  • impc:aot:insert-generic-type    scheme
  • impc:aot:insert-namedtype-binding-details    scheme
  • impc:aot:insert-typealias-binding-details    scheme
  • impc:aot:print-compilation-details    scheme
  • impc:compiler:print-already-bound-error    scheme
  • impc:compiler:print-bad-arity-error    scheme
  • impc:compiler:print-bad-numeric-value-error    scheme
  • impc:compiler:print-bad-type-error    scheme
  • impc:compiler:print-bad-type-error-with-ast    scheme
  • impc:compiler:print-badly-formed-expression-error    scheme
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-cannot-expand-non-generic-error    scheme
  • impc:compiler:print-compiler-error    scheme
  • impc:compiler:print-compiler-failed-error    scheme
  • impc:compiler:print-compiler-warning    scheme
  • impc:compiler:print-constraint-error    scheme
  • impc:compiler:print-could-not-resolve-generic-type-error    scheme
  • impc:compiler:print-could-not-resolve-type-error    scheme
  • impc:compiler:print-could-not-resolve-types    scheme
  • impc:compiler:print-could-not-resolve-types_find-expr    scheme
  • impc:compiler:print-double-colon-error    scheme
  • impc:compiler:print-dylib-loading-details-to-log    scheme
  • impc:compiler:print-expansion-arity-error    scheme
  • impc:compiler:print-if-type-conflict-error    scheme
  • impc:compiler:print-index-oob-error    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:compiler:print-missing-generic-type-error    scheme
  • impc:compiler:print-missing-identifier-error    scheme
  • impc:compiler:print-needs-zone-delay-error    scheme
  • impc:compiler:print-needs-zone-size-error    scheme
  • impc:compiler:print-no-redefinitions-error    scheme
  • impc:compiler:print-no-retval-error    scheme
  • impc:compiler:print-no-scheme-stub-notification    scheme
  • impc:compiler:print-no-valid-forms-for-generic-error    scheme
  • impc:compiler:print-not-during-aot-error    scheme
  • impc:compiler:print-polying-details-to-log    scheme
  • impc:compiler:print-shadow-var-error    scheme
  • impc:compiler:print-type-conflict-error    scheme
  • impc:compiler:print-type-mismatch-error    scheme
  • impc:compiler:print-unsupported-conversion-error    scheme
  • impc:compiler:print-variable-not-marked-as-free-error    scheme
  • impc:ir:check-type-size-calculations    scheme
  • impc:ir:clean-named-type    scheme
  • impc:ir:complex-type?    scheme
  • impc:ir:convert-from-pretty-types    scheme
  • impc:ir:convert-types    scheme
  • impc:ir:genericfunc-match-closure-types    scheme
  • impc:ir:genericfunc-match-tuple-types    scheme
  • impc:ir:genericfunc-type-setup    scheme
  • impc:ir:get-array-type-from-str    scheme
  • impc:ir:get-base-type    scheme
  • impc:ir:get-base-type-g    scheme
  • impc:ir:get-closure-type-from-str    scheme
  • impc:ir:get-function-type-from-str    scheme
  • impc:ir:get-generic-tuple-typevars    scheme
  • impc:ir:get-tuple-type-from-str    scheme
  • impc:ir:get-tuple-type-size    scheme
  • impc:ir:get-type-expand-poly    scheme
  • impc:ir:get-type-from-pretty-array    scheme
  • impc:ir:get-type-from-pretty-closure    scheme
  • impc:ir:get-type-from-pretty-str    scheme
  • impc:ir:get-type-from-pretty-str-rec    scheme
  • impc:ir:get-type-from-pretty-tuple    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-type-from-str    scheme
  • impc:ir:get-type-joiner    scheme
  • impc:ir:get-type-size    scheme
  • impc:ir:get-type-str    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ir:pptype    scheme
  • impc:ir:pretty-print-type    scheme
  • impc:ir:type?    scheme
  • impc:ir:types-equal?    scheme
  • impc:pretty-print-vars    macro
  • impc:ti:add-types-to-source    scheme
  • impc:ti:add-types-to-source-atom    scheme
  • impc:ti:bang-type?    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • impc:ti:completely-unwrap-named-type    scheme
  • impc:ti:complex-type?    scheme
  • impc:ti:construct-generic-type-if-valid    scheme
  • impc:ti:descending-generic-type-match    scheme
  • impc:ti:expand-generic-type    scheme
  • impc:ti:expand-generic-type-func-gpoly-arity    scheme
  • impc:ti:expand-generic-types    scheme
  • impc:ti:find-unresolved-simple-types    scheme
  • impc:ti:fprintf-check    scheme
  • impc:ti:generate-generic-type-cname    scheme
  • impc:ti:generic-type-details    scheme
  • impc:ti:generic-types-matchup?    scheme
  • impc:ti:genericfunc-pretty-print    scheme
  • impc:ti:genericfunc-types    scheme
  • impc:ti:generictype-exists?    scheme
  • impc:ti:get-builtin-type-str    scheme
  • impc:ti:get-closure-arg-types    scheme
  • impc:ti:get-closure-or-nativefunc-arg-types    scheme
  • impc:ti:get-closure-or-nativefunc-type    scheme
  • impc:ti:get-closure-type    scheme
  • impc:ti:get-expression-type    scheme
  • impc:ti:get-generic-type-as-tuple    scheme
  • impc:ti:get-generictype-candidate-types    scheme
  • impc:ti:get-global-var-types    scheme
  • impc:ti:get-globalvar-type    scheme
  • impc:ti:get-named-type    scheme
  • impc:ti:get-namedtype-docstring    scheme
  • impc:ti:get-namedtype-type    scheme
  • impc:ti:get-nativefunc-arg-types    scheme
  • impc:ti:get-nativefunc-type    scheme
  • impc:ti:get-polyfunc-candidate-pretty-types    scheme
  • impc:ti:get-polyfunc-candidate-types    scheme
  • impc:ti:get-polytype-candidate    scheme
  • impc:ti:get-polytype-candidate-list    scheme
  • impc:ti:get-polytype-candidate-names    scheme
  • impc:ti:get-polytype-candidate-pretty-types    scheme
  • impc:ti:get-polytype-candidate-types    scheme
  • impc:ti:get-type-for-gpoly    scheme
  • impc:ti:get-typealias-docstring    scheme
  • impc:ti:get-typealias-ground-type    scheme
  • impc:ti:get-typealias-ground-type-pretty    scheme
  • impc:ti:get-typealias-type    scheme
  • impc:ti:get-typealias-type-pretty    scheme
  • impc:ti:get-var-types    scheme
  • impc:ti:handle-forced-types    scheme
  • impc:ti:maximize-generic-type    scheme
  • impc:ti:minimize-gen-type-finalize-x    scheme
  • impc:ti:minimize-gen-type-x    scheme
  • impc:ti:minimize-generic-type    scheme
  • impc:ti:minimized-gen-type    scheme
  • impc:ti:namedtype-exists?    scheme
  • impc:ti:nativef-generics-check-return-type    scheme
  • impc:ti:nativef-generics-make-gtypes-unique    scheme
  • impc:ti:nativef-poly-check-match-ftypes    scheme
  • impc:ti:polyfunc-pretty-print    scheme
  • impc:ti:polytype-exists?    scheme
  • impc:ti:polytype-match?    scheme
  • impc:ti:polytype-pretty-print    scheme
  • impc:ti:print-builtin-cache    scheme
  • impc:ti:print-closure-cache    scheme
  • impc:ti:print-genericfunc-cache    scheme
  • impc:ti:print-generictype-cache    scheme
  • impc:ti:print-globalvar-cache    scheme
  • impc:ti:print-namedtype-cache    scheme
  • impc:ti:print-nativefunc-cache    scheme
  • impc:ti:print-polyfunc-cache    scheme
  • impc:ti:print-polytype-cache    scheme
  • impc:ti:print-typealias-cache    scheme
  • impc:ti:print-xtmacro-cache    scheme
  • impc:ti:printf-check    scheme
  • impc:ti:println    scheme
  • impc:ti:println2    scheme
  • impc:ti:register-new-generictype    scheme
  • impc:ti:register-new-namedtype    scheme
  • impc:ti:register-new-polytype    scheme
  • impc:ti:register-new-typealias    scheme
  • impc:ti:reify-generic-type    scheme
  • impc:ti:reify-generic-type-expand    scheme
  • impc:ti:reset-generictype-cache    scheme
  • impc:ti:reset-namedtype-cache    scheme
  • impc:ti:reset-polytype-cache    scheme
  • impc:ti:reset-typealias-cache    scheme
  • impc:ti:run-type-check    scheme
  • impc:ti:run-type-check*    scheme
  • impc:ti:set-builtin-type-str    scheme
  • impc:ti:set-closure-type    scheme
  • impc:ti:set-namedtype-docstring    scheme
  • impc:ti:set-nativefunc-type    scheme
  • impc:ti:set-typealias-docstring    scheme
  • impc:ti:simplify-genericfunc-pretty-type    scheme
  • impc:ti:simplify-generictype-pretty-type    scheme
  • impc:ti:spec-new-type?    scheme
  • impc:ti:specialize-generictype    scheme
  • impc:ti:split-namedtype    scheme
  • impc:ti:sprintf-check    scheme
  • impc:ti:sprintln    scheme
  • impc:ti:sprintln2    scheme
  • impc:ti:strip-named-type    scheme
  • impc:ti:try-to-resolve-named-types    scheme
  • impc:ti:type-check    scheme
  • impc:ti:type-check-bound-lambda    scheme
  • impc:ti:type-clean    scheme
  • impc:ti:type-normalize    scheme
  • impc:ti:type-unify    scheme
  • impc:ti:type-unify-closure    scheme
  • impc:ti:typealias-exists?    scheme
  • json_array_p    xtlang
  • json_decref    xtlang
  • json_false_p    xtlang
  • json_incref    xtlang
  • json_integer_p    xtlang
  • json_null_p    xtlang
  • json_obj_iterator    xtlang
  • json_object_p    xtlang
  • json_object_print_keys    xtlang
  • json_real_p    xtlang
  • json_string_p    xtlang
  • json_true_p    xtlang
  • json_typeof    xtlang
  • kinect_print_body    xtlang
  • lilv_print_all_lv2_plugins    xtlang
  • lilv_print_all_plugin_ports    xtlang
  • llvm:compile-ir-and-print    scheme
  • local_gen_type_minimize    scheme
  • matcher:type    scheme
  • mprint    xtlang
  • mprint    xtlang
  • mprint    xtlang
  • mprint    xtlang
  • myprint    xtlang
  • myprint    xtlang
  • myprint    xtlang
  • nn_println_strerror    xtlang
  • nn_println_strerror    xtlang
  • ocv_type    xtlang
  • pa_print_devices    xtlang
  • pm_print_devices    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print    xtlang
  • print-load    scheme
  • print-str-sym    xtlang
  • print-with-colors    macro
  • printYourArgs    xtlang
  • print_all_devices    xtlang
  • print_audio_state    xtlang
  • print_audio_state    xtlang
  • print_device_feature_report    xtlang
  • print_interface_addresses    xtlang
  • print_json_t    xtlang
  • print_mersenne_primes    xtlang
  • print_midi_devices    xtlang
  • print_particle    xtlang
  • print_planet    xtlang
  • print_program_info_log    xtlang
  • print_response    xtlang
  • print_response    xtlang
  • print_return    xtlang
  • print_shader_info_log    xtlang
  • print_space    xtlang
  • print_walker    xtlang
  • print_walker_array    xtlang
  • print_xtmmodel    xtlang
  • printer    xtlang
  • qr_code_print    xtlang
  • regex:type-split    scheme
  • register-lib-type    macro
  • rtmidi_print_ports    xtlang
  • set_lfo1_type    scheme
  • set_lfo2_type    scheme
  • set_lfo3_type    scheme
  • set_lfo4_type    scheme
  • set_noise_type    xtlang
  • sf_print_audio_file_info    xtlang
  • specialize-generictype    macro
  • sys:print-interface-addresses    scheme
  • t:cleanup-string-type    scheme
  • t:notype?    scheme
  • testprint    xtlang
  • testprint    xtlang
  • testprint    xtlang
  • type    xtlang
  • type    xtlang
  • type    xtlang
  • type    xtlang
  • type_class_test    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • vprint    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • xobj_print_class    xtlang
  • xobj_print_classes    xtlang
  • xtm_vg_print_error    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmdoc-generictype-handler    scheme
  • xtmdoc-namedtype-handler    scheme
  • xtmdoc-polytype-handler    scheme
  • xtmdoc-strip-arg-type-annotations    scheme
  • xtmdoc-typealias-handler    scheme
  • xtmdoc-write-alist-args-as-json    scheme
  • xtmdoc-write-alist-as-json    scheme
  • xtmtest-print-results    scheme
  • xtmtest-print-results    scheme