You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	fix anonymous struct
This commit is contained in:
		| @@ -93,7 +93,7 @@ func (extension *testExtension) UpdateStructDescriptor(structDescriptor *StructD | ||||
| 	if structDescriptor.Type.String() != "jsoniter.TestObject1" { | ||||
| 		return | ||||
| 	} | ||||
| 	binding := structDescriptor.Fields["field1"] | ||||
| 	binding := structDescriptor.GetField("field1") | ||||
| 	binding.Encoder = &funcEncoder{fun: func(ptr unsafe.Pointer, stream *Stream) { | ||||
| 		str := *((*string)(ptr)) | ||||
| 		val, _ := strconv.Atoi(str) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user