JsonLanguage
classin packageklyn.code.json
public class JsonLanguage extends Object
└ JsonLanguage

Canonical LanguageProfile factory for JSON and JSONC (.json, .jsonc, .jsonl, .geojson).

import klyn.code.json

profile = JsonLanguage.profile()
assert profile.id == "json"
assert profile.isConstant("true")
assert profile.isConstant("null")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static profile
profile() as LanguageProfile
Returns the shared singleton LanguageProfile for JSON/JSONC.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml