FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


json DOM

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
augustinharrison




Joined: 28 Jul 2010
Posts: 27

PostPosted: 8 Feb 2017 21:38    Post subject: json DOM Reply with quote

is the DOM for json available to visual prolog so that i can map the recursive structure required
to break down the levels in the json objects i will be parsing? the breakdown of the 7 types is
good but i have some extensive nested examples to figure out. i will look at the java DOM json reference to get started.

the rpc/json project is a great deal of help to get going, Thanks!!!


AEH

_________________
aeh
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3104

PostPosted: 9 Feb 2017 13:07    Post subject: Reply with quote

The domain json::jsonValue can represent any JSON value. You should notice that a JSON object is basically represented as a Visual Prolog mapM{string, jsonValue}.

I.e. a map from the keys to the jsonValue that is attached to the key (if any).

If you are not familiar with maps (sets and other collections) you should read the Collection library tutorial.

_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum