[30] Results

Golang : Output or print out JSON stream/encoded data

golang json-stream write-to-responsewriter content-type

Problem :

You need to produce JSON stream or JSON encoded data to web browser or client. How to do….... read more

Golang : How to stream file to client(browser) or write to http.ResponseWriter?

golang stream-file browser client

Problem :

You have a file - such as a PDF or MP3 file that you want to stream/download straight….... read more

Javascript : Access JSON data example

javascript json


You have a JSON string such as below and you want to access the data individually via Javascript. How….... read more

PHP : Count number of JSON items/objects

php json

Recently I need to paginate the search result returned by ElasticSearch. To paginate the result with standard CodeIgniter paginate helper....….... read more

Javascript : Read/parse JSON data from HTTP response

javascript json parse

This is just a quick note on how to parse JSON data with Javascript. The JSON data is generated in….... read more

Golang : Marshal and unmarshal json.RawMessage struct example

golang json-raw-message json-marshal json-unmarshal

Golang's json.RawMessage type is a good way to deal with generic JSON objects other than interface{}. There are times when….... read more

Golang : [json: cannot unmarshal object into Go value of type]

golang json-cannot-unmarshal-object

Un-marshalling JSON data from external sources can be challenging sometimes. Encountered this error message while working on the previous .... read more

Golang : XML to JSON example

golang XML json

For this tutorial, we will learn how to read data from XML file, process the data and save the output….... read more