javascript

How to minify and pretty print XML in JavaScript

8 months ago codedestine 0
How to minify and pretty print XML in JavaScript In this tutorial, we will learn how to minify and pretty print XML in JavaScript. We will use vkbeautify java script plugin, it is a small and simple java script plugin to beautify XML, JSON or CSS text. Sample :- XML for book type :- <Book> <id>01</id> <language>Java</language> Read More

How to minify and pretty print JSON in JavaScript

8 months ago codedestine 0
How to minify and pretty print JSON in JavaScript :-  In this tutorial, we will learn how to minify and pretty print JSON in JavaScript. Java Script provide us a method JSON.stringify(), which can convert Java Script value or object to JSON string. Method :-    JSON.stringify ( value])  This method takes three Read More

How to parse JSON in JavaScript

8 months ago codedestine 0
How to parse JSON in JavaScript :-  If you had worked on angularJS or any other modern java script framework, then you would have noticed that, now days restful web services are used to communicate ( Getting data or Posting data ) with the server. In restful web services, JSON format is used ( mostly Read More