You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	#157 number can be null
This commit is contained in:
		| @@ -316,7 +316,7 @@ func Test_recursive_empty_interface_customization(t *testing.T) { | ||||
| } | ||||
|  | ||||
| type GeoLocation struct { | ||||
| 	Id             string     `json:"id,omitempty" db:"id"` | ||||
| 	Id string `json:"id,omitempty" db:"id"` | ||||
| } | ||||
|  | ||||
| func (p *GeoLocation) MarshalJSON() ([]byte, error) { | ||||
| @@ -337,4 +337,4 @@ func Test_marshal_and_unmarshal_on_non_pointer(t *testing.T) { | ||||
| 	err = Unmarshal([]byte("[1]"), &locations) | ||||
| 	should.Nil(err) | ||||
| 	should.Equal("hello", locations[0].Id) | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user