• Kubernetes Submit Queue's avatar
    Merge pull request #57142 from nikhita/bump-jsoniter · 135d58b3
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 57122, 57142, 57016, 56927, 56678). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    bump(13f864): github.com/json-iterator/go: use ConfigCompatibleWithStandardLibrary
    
    Jsoniter in `ConfigFastest` mode does not support escape characters in object keys, whereas `ConfigCompatibleWithStandardLibrary` does.
    
    Fixes kubernetes/kubernetes#56018
    Related kubernetes/kubernetes#56055
    
    Benchmark results:
    
    ```
    BenchmarkDecodeIntoJSON-4                                              	   30000	     48522 ns/op	    3792 B/op	      63 allocs/op
    BenchmarkDecodeIntoJSONCodecGenConfigFast-4                            	  100000	     17409 ns/op	    4524 B/op	      96 allocs/op
    BenchmarkDecodeIntoJSONCodecGenConfigCompatibleWithStandardLibrary-4   	  100000	     18617 ns/op	    4924 B/op	     121 allocs/op
    ```
    
    /assign sttts thockin mfojtik
    135d58b3
serialization_test.go 18 KB