Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Go's JSON package mean when it refers to Marshal? [closed]

Tags:

json

go

http://golang.org/pkg/encoding/json/

Marshal, unmarshal, marshaler. Very confused. Never heard of such terms in this context.

like image 464
Brenden Avatar asked Nov 05 '13 01:11

Brenden


People also ask

What does Marshal mean JSON?

Go's terminology calls marshal the process of generating a JSON string from a data structure, and unmarshal the act of parsing JSON to a data structure.

What is Golang JSON marshal?

It allows you to do encoding of JSON data as defined in the RFC 7159. When working with data we usually want to encode some Go struct into a json string. However the Go standard library encoding/json package allows us to encode any data type into a JSON string.

What does Marshal mean in Golang?

6 months ago. by John Otieno. Marshaling refers to transforming an object into a specific data format that is suitable for transmission. JSON is one of the most popular data interchange formats.

What is marshal and Unmarshal JSON?

Marshalling and unmarshalling is used both on the client and server side. On the server side it is used to map an incoming request to a Scala or Java object and to map a Scala or Java object to an outgoing response.


1 Answers

From wikipedia article on Marshalling,

Marshalling (sometimes spelled marshaling with a single l) is the process of transforming the memory representation of an object to a data format suitable for storage or transmission.

like image 80
Srinivas Reddy Thatiparthy Avatar answered Oct 23 '22 12:10

Srinivas Reddy Thatiparthy