0
我有两个问题。 如何在序言中获得json对象的值? 如何以json的形式发送谓词解决方案列表?从序言中的json对象获取值
我的代码:
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).