[31] Results

Golang : How to unmarshal JSON inner/nested value and assign to specific struct?

golang inner-JSON unmarshal struct

Another tutorial to be recorded here after helping a newbie to Golang. His problem was how to deal with JSON….... read more


Golang : Metaprogramming example of wrapping a function

golang metaprogramming wrapping inner-function lambda

One of the most important mantras in programming is "DRY" or "Don't Repeat Yourself". Software developers should try to master….... read more


Javascript : Access JSON data example

javascript json

Problem:

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 : 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


Convert JSON to CSV in Golang

golang json csv convert

Need to load a data file with JSON encoded data and save it to CSV file ? This tutorial will….... read more


Advertisement