Fetch a single JSON file from the compiled files in the database. Output the contents of that file to the console.

Command Syntax

json-view FILE_NAME [PRESENTATION_FLAGS]
FILE_NAME - The name of the JSON file in the database to be viewed
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.

Examples

php spark.php json-view "root.name"
view a json file

php spark.php json-view "root.name" theme=DEFAULT
view a json file with presentation flags

php spark.php json-view "root.name" -hb theme=DEFAULT
view a json file with presentation flags

php spark.php json-view "root.name" -auto -hb theme=DEFAULT
view a json file with presentation flags

Back