Skip to content

Commit

Permalink
Merge pull request #782 from axone-protocol/refactor/json_prolog_impr…
Browse files Browse the repository at this point in the history
…ovements

Refactor and improve json_prolog/2 predicate
  • Loading branch information
ccamel authored Oct 12, 2024
2 parents cab7137 + 6a1d677 commit 025dd8b
Show file tree
Hide file tree
Showing 11 changed files with 730 additions and 280 deletions.
4 changes: 2 additions & 2 deletions docs/predicate/json_prolog_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Where:

The canonical representation for Term is:

- A JSON object is mapped to a Prolog term json\(NameValueList\), where NameValueList is a list of Name\-Value pairs. Name is an atom created from the JSON string.
- A JSON object is mapped to a Prolog term json\(NameValueList\), where NameValueList is a list of Name=Value key values. Name is an atom created from the JSON string.
- A JSON array is mapped to a Prolog list of JSON values.
- A JSON string is mapped to a Prolog atom.
- A JSON number is mapped to a Prolog number.
Expand All @@ -35,5 +35,5 @@ The canonical representation for Term is:

```text
# JSON conversion to Prolog.
- json_prolog('{"foo": "bar"}', json([foo-bar])).
- json_prolog('{"foo": "bar"}', json([foo=bar])).
```
Loading

0 comments on commit 025dd8b

Please sign in to comment.