jsonparser icon indicating copy to clipboard operation
jsonparser copied to clipboard

Read JSON data

Open ghost opened this issue 7 years ago • 1 comments

Hello,

Is there any way to convert the data from the request to JSON String using jsonparser? I mean the whole request body and not only 1 key

Actually I'm doing like this

buffer := new(bytes.Buffer)
	buffer.ReadFrom(r.Body)
	data := buffer.String()

ghost avatar Oct 21 '18 14:10 ghost

I think jsonparser should not support this. It just need a string without considering where this string from

chzhuo avatar Dec 18 '18 01:12 chzhuo