pongraczgabor87

pongraczgabor87

Member Since 3 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Lessons Completed
1
stars
Best Reply Awards
0
repos

25 contributions in the last year

Pinned
Activity
Jan
13
6 days ago
Activity icon
issue

pongraczgabor87 issue comment json-iterator/go

pongraczgabor87
pongraczgabor87

added fuzzy decoding for booleans, added ability to decode numeric keyed objects as arrays with fizzy decoder

rel https://github.com/json-iterator/go/issues/486

  • decode the followings as boolean: "true", "false", 0, 1, "0", "1".
  • allow unmarshalling numeric keyed objects with strictly increasing keys as array, eg: {"0": "a", "2": "b"}

The later is neccessary because of the "unset" php method, eg:

<?php

$a = ["a", "b", "c"];
echo json_encode($a); // prints ["a","b","c"]

unset($a[1]);
	
echo json_encode($a); // prints {"0":"a","2":"c"}
pongraczgabor87
pongraczgabor87

@taowen Would you have time to look into this?