Archive:JSON format 1.4.2 - 1.7.1

From semantic-mediawiki.org


This documentation page applies to all SMW versions from 1.4.2 to 1.7.1.
      Other languages: dezh-hans

Help:JSON format en 1.4.2 1.7.1


JSON format 1.4.2 - 1.7.1
Outputs semantic data in JSON format
Further Information
Provided by: Semantic MediaWiki
Added: 1.4.2
Removed: still supported
Requirements: none
Format name: json
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Fabian Howahl , Jeroen De Dauw
Categories: export · plaintext
Table of Contents

The result format json is used to produce links to JSON files.

Parameters[edit]

Parameter Type Default Description
type text full Serialization type
prettyprint yes/no empty A pretty-print output that displays additional indents and newlines
unescape yes/no empty Output to contain unescaped slashes and multibyte Unicode characters
filename text result.json The name for the output file

Example[edit]

{{#ask: [[Category:City]] [[located in::Germany]] 
| ?population
| format=json
}}

Result: JSON