{"size": 881, "ext": "scrbl", "max_stars_repo_path": "scribblings/command-point.scrbl", "max_stars_repo_name": "yurkobb/argo", "max_stars_repo_stars_event_min_datetime": "2017-08-26T13:27:14.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-26T10:50:00.000Z", "max_issues_repo_path": "scribblings/command-point.scrbl", "max_issues_repo_name": "yurkobb/argo", "max_issues_repo_issues_event_min_datetime": "2017-08-29T22:14:30.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-14T03:54:28.000Z", "max_forks_repo_path": "scribblings/command-point.scrbl", "max_forks_repo_name": "yurkobb/argo", "max_forks_repo_forks_event_min_datetime": "2017-08-30T14:38:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-03T19:31:29.000Z"}
{"max_stars_count": 11, "max_issues_count": 7, "max_forks_count": 3, "avg_line_length": 26.696969697, "max_line_length": 216, "alphanum_fraction": 0.7196367764}
#lang scribble/manual

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

@title{@tt{point}}

The @tt{point} command takes a JSON file and a @hyperlink[#:underline? #f "https://tools.ietf.org/html/rfc6901"]{JSON Pointer} expression as input and outputs the part of the JSON file to which the expression refers.

Run it like this:

@verbatim{
raco argo point data.json expression
}

@bold{Exit code}

@tt{point} exits cleanly (with code 0) provided:

@itemlist[
  @item{exactly two arguments, @tt{data.json} and @tt{expression}, were supplied to it,}
  @item{@tt{data.json} exists and is a file,}
  @item{@tt{data.json} is well-formed JSON,}
  @item{@tt{expression} is a well-formed JSON Pointer expression, and}
  @item{@tt{expression} refers to something in @tt{data.json}.}
]

If any of these conditions fails, the exit code will be 1.

@bold{Options}

@tt{point} accepts no options.
