Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

serialization and deserialization in javascript

let simpleJSON ={ "name":"John", "age":30, "car":null };
//serialization is converting an object to a string
//...its useful when data is to be transmitted across a network
let simpleString = JSON.stringify(simpleJSON);
console.log(simpleString);

//deserialization is converting a string to an object
console.log(JSON.parse(simpleString));
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery keep scroll position 
Javascript :: remove axis tick ends d3 
Javascript :: word count javascript 
Javascript :: transitionduration js 
Javascript :: split text and join in js 
Javascript :: how to change a string to number in javascript 
Javascript :: express get raw path 
Javascript :: Vuejs v-model when enter pressed 
Javascript :: float to currency 
Javascript :: livewire file upload progress 
Javascript :: react native new line character 
Javascript :: destructure dynamic property 
Javascript :: Get React Native View width and height 
Javascript :: buffer from base64 
Javascript :: get data from url javascript 
Javascript :: draw line in javascript 
Javascript :: how to get json data from json file in node js 
Javascript :: scroll to section react 
Javascript :: array.filter async 
Javascript :: how to loop through array of numbers in javascript 
Javascript :: if jsp 
Javascript :: settimeout inside loop 
Javascript :: check row empty array javascript 
Javascript :: kendo clear selection 
Javascript :: react navigation navigator types 
Javascript :: javascript undefined check 
Javascript :: new File in js 
Javascript :: set timeout javascript 
Javascript :: get month in two digit in javascript date 
Javascript :: on click jqueyr 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =