{"size": 602, "ext": "scrbl", "max_stars_repo_path": "scribblings/parse.scrbl", "max_stars_repo_name": "pmatos/json-pointer", "max_stars_repo_stars_event_min_datetime": "2017-12-24T07:17:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-24T18:34:01.000Z", "max_issues_repo_path": "scribblings/parse.scrbl", "max_issues_repo_name": "pmatos/json-pointer", "max_issues_repo_issues_event_min_datetime": "2018-07-30T13:49:07.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-27T10:04:27.000Z", "max_forks_repo_path": "scribblings/parse.scrbl", "max_forks_repo_name": "pmatos/json-pointer", "max_forks_repo_forks_event_min_datetime": "2021-03-24T10:53:51.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-24T10:53:51.000Z"}
{"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 22.2962962963, "max_line_length": 137, "alphanum_fraction": 0.7458471761}
#lang scribble/manual

@require[@for-label[racket/base
	            json
		    json-pointer]]

@title{Parsing and rendering}

How do you parse JSON Pointers to get JSON Pointer expressions?

@defproc[
(parse-json-pointer
[p json-pointer?])
json-pointer-expression?]

Given a JSON Pointer, produce a JSON Pointer expression.

What about going the other way around? Can you render a “semantic” JSON Pointer expression into a “syntactic” JSON Pointer? Yes, you can:

@defproc[
(expression->pointer
[expr json-pointer-expression?])
json-pointer?
]

Given a JSON Pointer expression, produce a JSON Pointer.
