AngularJS Example:
by Guddu Kumar
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<div ng-controller="TodoCtrl">
<!-- <pre>{{abc|json}}</pre> -->
<pre>{{finalJson|json}}</pre>
</div>
</div>
CSS
"description":child.description,
"primary": child.primary,
"id": child.id,
"dataType":child.dataType,
"text":child.fieldName,
"parent":typeVal.id,
"precision": child.precision,
"scale":child.scale,
"dateFormat":child.dateFormat
JavaScript
function TodoCtrl($scope) {
$scope.abc=[
{
"description": "",
"primary": false,
"id": "653_car",
"dataType": "object",
"fieldName": "car",
"parent": "Schema",
"piiDefinition": {
"piiSelected": false,
"matchedPII": null,
"matchPIIAttributeId": null,
"piiTreatment": null,
"piiOverridden": false,
"anonymized": false,
"encrypted": false
},
"precision": null,
"scale": null,
"dateFormat": null,
"attributes": [
{
"description": "",
"primary": false,
"id": "653_car.car1",
"dataType": "object",
"fieldName": "car1",
"parent": "car",
"piiDefinition": {
"piiSelected": false,
"matchedPII": null,
"matchPIIAttributeId": null,
"piiTreatment": null,
"piiOverridden": false,
"anonymized": false,
"encrypted": false
},
"precision": null,
"scale": null,
"dateFormat": null,
"attributes": [
{
"description": "",
"primary": false,
"id": "653_car.car1.car1A",
"dataType": "array",
"fieldName": "car1A",
"parent": "car1",
"piiDefinition": {
"piiSelected": false,
"matchedPII": null,
"matchPIIAttributeId": null,
"piiTreatment": null,
"piiOverridden": false,
"anonymized": false,
"encrypted": false
},
"precision": null,
"scale": null,
"dateFormat": null,
"items": {
"type": "String"
},
"aType": "String",
"attributes": []
},
{
"description": "",
"primary": false,
"id": "653_car.car1.car1B",
"dataType":...