What's wrong with this prolog program for a json parser?
I was trying to create a prolog JSON parser that has a string and a variable for the result as a input and i wrote this program: :- use_module(library(dcg/basics)). jsonparse(String, Value) :- string_chars(String, Chars), phrase(json_value(Value), Chars). json_value(Value) --> json_object(Value) ;…