Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
as3-json-formatter/src/org/pastila/utils/json
README.md

README.md

AS3 JSON Formatter

Simple function that allows you to format serialized JSON.

const source : Object = {person:{name: "Ilya Malanin", age: 26, married: true}, location: {country: "Russia", city: "Tomsk"}};
var result : String = formatJSON(JSON.stringify(source));

Result:

{
  "person": {
		"name": "Ilya Malanin",
		"age": 26,
		"married": true
	},
	"location": {
		"country": "Russia",
		"city": "Tomsk"
	}
}