You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	adapter
This commit is contained in:
		
							
								
								
									
										9
									
								
								jsoniter_adapter.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								jsoniter_adapter.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| package jsoniter | ||||
|  | ||||
| // adapt to json/encoding api | ||||
|  | ||||
| func Unmarshal(data []byte, v interface{}) error { | ||||
| 	iter := ParseBytes(data) | ||||
| 	iter.Read(v) | ||||
| 	return iter.Error | ||||
| } | ||||
		Reference in New Issue
	
	Block a user