You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_cast.expected 4.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Parsed input: {
  2. "string_of_digits": "123",
  3. "regular_number": 222,
  4. "decimal_number": 99.55,
  5. "boolean_true": true,
  6. "boolean_false": false,
  7. "int64_number": 2147483649,
  8. "negative_number": -321321321,
  9. "a_null": null,
  10. "empty_array": [],
  11. "nonempty_array": [ 123 ],
  12. "array_with_zero": [ 0 ],
  13. "empty_object": {},
  14. "nonempty_object": { "a": 123 },
  15. }
  16. Result is not NULL
  17. new_obj.string_of_digits json_object_get_type()=string
  18. new_obj.string_of_digits json_object_get_int()=123
  19. new_obj.string_of_digits json_object_get_int64()=123
  20. new_obj.string_of_digits json_object_get_uint64()=123
  21. new_obj.string_of_digits json_object_get_boolean()=1
  22. new_obj.string_of_digits json_object_get_double()=123.000000
  23. new_obj.regular_number json_object_get_type()=int
  24. new_obj.regular_number json_object_get_int()=222
  25. new_obj.regular_number json_object_get_int64()=222
  26. new_obj.regular_number json_object_get_uint64()=222
  27. new_obj.regular_number json_object_get_boolean()=1
  28. new_obj.regular_number json_object_get_double()=222.000000
  29. new_obj.decimal_number json_object_get_type()=double
  30. new_obj.decimal_number json_object_get_int()=99
  31. new_obj.decimal_number json_object_get_int64()=99
  32. new_obj.decimal_number json_object_get_uint64()=99
  33. new_obj.decimal_number json_object_get_boolean()=1
  34. new_obj.decimal_number json_object_get_double()=99.550000
  35. new_obj.boolean_true json_object_get_type()=boolean
  36. new_obj.boolean_true json_object_get_int()=1
  37. new_obj.boolean_true json_object_get_int64()=1
  38. new_obj.boolean_true json_object_get_uint64()=1
  39. new_obj.boolean_true json_object_get_boolean()=1
  40. new_obj.boolean_true json_object_get_double()=1.000000
  41. new_obj.boolean_false json_object_get_type()=boolean
  42. new_obj.boolean_false json_object_get_int()=0
  43. new_obj.boolean_false json_object_get_int64()=0
  44. new_obj.boolean_false json_object_get_uint64()=0
  45. new_obj.boolean_false json_object_get_boolean()=0
  46. new_obj.boolean_false json_object_get_double()=0.000000
  47. new_obj.int64_number json_object_get_type()=int
  48. new_obj.int64_number json_object_get_int()=2147483647
  49. new_obj.int64_number json_object_get_int64()=2147483649
  50. new_obj.int64_number json_object_get_uint64()=2147483649
  51. new_obj.int64_number json_object_get_boolean()=1
  52. new_obj.int64_number json_object_get_double()=2147483649.000000
  53. new_obj.negative_number json_object_get_type()=int
  54. new_obj.negative_number json_object_get_int()=-321321321
  55. new_obj.negative_number json_object_get_int64()=-321321321
  56. new_obj.negative_number json_object_get_uint64()=0
  57. new_obj.negative_number json_object_get_boolean()=1
  58. new_obj.negative_number json_object_get_double()=-321321321.000000
  59. new_obj.a_null json_object_get_type()=null
  60. new_obj.a_null json_object_get_int()=0
  61. new_obj.a_null json_object_get_int64()=0
  62. new_obj.a_null json_object_get_uint64()=0
  63. new_obj.a_null json_object_get_boolean()=0
  64. new_obj.a_null json_object_get_double()=0.000000
  65. new_obj.empty_array json_object_get_type()=array
  66. new_obj.empty_array json_object_get_int()=0
  67. new_obj.empty_array json_object_get_int64()=0
  68. new_obj.empty_array json_object_get_uint64()=0
  69. new_obj.empty_array json_object_get_boolean()=0
  70. new_obj.empty_array json_object_get_double()=0.000000
  71. new_obj.nonempty_array json_object_get_type()=array
  72. new_obj.nonempty_array json_object_get_int()=0
  73. new_obj.nonempty_array json_object_get_int64()=0
  74. new_obj.nonempty_array json_object_get_uint64()=0
  75. new_obj.nonempty_array json_object_get_boolean()=0
  76. new_obj.nonempty_array json_object_get_double()=0.000000
  77. new_obj.array_with_zero json_object_get_type()=array
  78. new_obj.array_with_zero json_object_get_int()=0
  79. new_obj.array_with_zero json_object_get_int64()=0
  80. new_obj.array_with_zero json_object_get_uint64()=0
  81. new_obj.array_with_zero json_object_get_boolean()=0
  82. new_obj.array_with_zero json_object_get_double()=0.000000
  83. new_obj.empty_object json_object_get_type()=object
  84. new_obj.empty_object json_object_get_int()=0
  85. new_obj.empty_object json_object_get_int64()=0
  86. new_obj.empty_object json_object_get_uint64()=0
  87. new_obj.empty_object json_object_get_boolean()=0
  88. new_obj.empty_object json_object_get_double()=0.000000
  89. new_obj.nonempty_object json_object_get_type()=object
  90. new_obj.nonempty_object json_object_get_int()=0
  91. new_obj.nonempty_object json_object_get_int64()=0
  92. new_obj.nonempty_object json_object_get_uint64()=0
  93. new_obj.nonempty_object json_object_get_boolean()=0
  94. new_obj.nonempty_object json_object_get_double()=0.000000
  95. ================================
  96. json_object_is_type: null,boolean,double,int,object,array,string
  97. new_obj : 0,0,0,0,1,0,0
  98. new_obj.string_of_digits : 0,0,0,0,0,0,1
  99. new_obj.regular_number : 0,0,0,1,0,0,0
  100. new_obj.decimal_number : 0,0,1,0,0,0,0
  101. new_obj.boolean_true : 0,1,0,0,0,0,0
  102. new_obj.boolean_false : 0,1,0,0,0,0,0
  103. new_obj.int64_number : 0,0,0,1,0,0,0
  104. new_obj.negative_number : 0,0,0,1,0,0,0
  105. new_obj.a_null : 1,0,0,0,0,0,0