{ Analytica Model ParseJSON_examples_on_docs, encoding="UTF-8" }
SoftwareVersion 7.0.2
{ System Variables with non-default values: }
SampleSize := 1000
TypeChecking := 1
Checking := 1
SaveOptions := 2
SaveValues := 0
{!-50299|DiagramColor Model: 65535,65535,65535}
{!-50299|DiagramColor Module: 65535,65535,65535}
{!-50299|DiagramColor LinkModule: 65535,65535,65535}
{!-50299|DiagramColor Library: 65535,65535,65535}
{!-50299|DiagramColor LinkLibrary: 65535,65535,65535}
{!-50299|DiagramColor Form: 65535,65535,65535}
NodeInfo FormNode: 1,0,0,,0,0,,,,0,,,0
{!-50299|NodeColor Text: 62258,62258,62258}
{!-60000|Attribute AcpStyles}
Model ParseJSON_examples_on_docs
Description: Examples that appear on the wiki page for ParseJSONwiki page for ParseJSON for release 7.0.
Author: Lonnie Chrisman, Ph.D.~
Lumina Decision Systems
Date: Fri, Nov 7, 2025 11:19 AM
DiagState: 2,0,0,1264,624,17,10
FontStyle: Arial,15
FileInfo: 0,Model ParseJSON_examples_on_docs,2,2,0,0,W:\TestModels\ParseJSON examples on docs.ana
Variable json1
Title: json1
Definition: '{ "title" : "1984",~
"author" : "George Orwell",~
"year" : 1949,~
"pages" : 336,~
"paperback" : true~
}'
NodeLocation: 176,72,1
NodeSize: 64,24
Variable json1_parse1
Title: json1 parse1
Definition: ParseJSON(json1)
NodeLocation: 392,72,1
NodeSize: 64,24
ValueState: 2,1442,153,388,138,,MIDM
Variable json2
Title: json2
Definition: '{ "title" : "1984",~
"author" : { "first" : "George", "last" : "Orwell" },~
"year" : 1949,~
"pages" : 336,~
"paperback" : true~
}'
NodeLocation: 176,144,1
NodeSize: 64,24
Variable parse2
Title: parse2
Definition: ParseJSON(json2)
NodeLocation: 392,144,1
NodeSize: 64,24
ValueState: 2,1347,34,388,138,,MIDM
Variable json3
Title: json3
Definition: '{ "data": [ [ 1,2], [3,4], [5,6] ] }'
NodeLocation: 176,216,1
NodeSize: 64,24
Variable parse3
Title: parse3
Definition: ParseJSON( json3 )
NodeLocation: 392,216,1
NodeSize: 64,24
ValueState: 2,1288,35,247,125,,MIDM
Variable parse4
Title: parse4
Definition: parseJSON( json2, Book )
NodeLocation: 392,280,1
NodeSize: 64,24
ValueState: 2,1344,547,416,125,,MIDM
NumberFormat: 2,D,4,2,0,0,4,0,$,0,"ABBREV",0,,,0,0,15,,0,0
{!70000|Struct Book( title: text atom; ~
author: Person atom ; ~
year,pages : Number atom ; ~
paperback : Boolean atom ~
)}
{!70000|Title: Book}
{!70000|Definition: Self}
{!70000|NodeLocation: 560,280,1}
{!70000|NodeSize: 64,24}
{!70000|WindState: 2,717,491,720,350}
{!70000|NamespaceDefaultScope: private}
Close Book
{!70000|Struct Person( first, last : Text atom )}
{!70000|Title: Person}
{!70000|Definition: Self}
{!70000|NodeLocation: 712,280,1}
{!70000|NodeSize: 64,24}
{!70000|NamespaceDefaultScope: private}
Close Person
{!70000|Struct Club( members : List of Person )}
{!70000|Title: Club}
{!70000|Definition: Self}
{!70000|NodeLocation: 560,352,1}
{!70000|NodeSize: 64,24}
{!70000|WindState: 2,807,402,720,350}
{!70000|NamespaceDefaultScope: private}
Close Club
Variable json4
Title: json4
Definition: '{ "members" : [ { "first":"Lonnie", "last":"Chrisman"}, { "first":"Peter", "last":"Moore"}, { "first":"Max", "last":"Henrion"} ] }'
NodeLocation: 176,352,1
NodeSize: 64,24
Variable parse_to_Club
Title: parse to Club
Definition: ParseJSON(json4, Club_with_members)
NodeLocation: 392,352,1
NodeSize: 64,24
ValueState: 2,1348,47,416,130,,MIDM
{!70000|Struct Club_with_Members( members : Person[ Member_ID ] ; Member_Id : Index )}
{!70000|Title: Club with Members}
{!70000|Definition: Self}
{!70000|NodeLocation: 720,352,1}
{!70000|NodeSize: 64,24}
{!70000|WindState: 2,1100,438,720,350}
{!70000|NamespaceDefaultScope: private}
Close Club_with_Members
Close ParseJSON_examples_on_docs