Ich habe zwei Fragen. Wie kann ich Wert von JSON-Objekt in Prolog erhalten? Wie kann ich Liste der Lösung aus Prädikat in Form von JSON senden?Get Wert von Json-Objekt in Prolog
Mein Code:
handle(Request) :-
format(user_output,"I'm here~n",[]),
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).