title: Get value from JSON object in Prolog
body: <p>I have two questions.</p>
  <ul>
  <li>How can I access the values in a JSON data structure in Prolog?</li>
  <li>How can I yield a list of solutions from a predicate as JSON?</li>
  </ul>
  <p>My Code:</p>
  <pre><code>handle(Request) :-
     format(user_output,&quot;I'm here~n&quot;,[]),
     http_read_json(Request, DictIn,[json_object(term)]),
     %beat(DictIn.name,DictIn.move,X),
     %get list of solution of beat in to JSON and keep it in DictOut
     reply_json(DictOut).
  </code></pre>