Skip to main content

JSONUtils

Import :​

const JSONUtils = brackets.getModule("language/JSONUtils")

regexAllowedChars : RegExp​

Reg-ex to match colon, comma, opening bracket of an array and white-space.

Kind: global variable

TOKEN_KEY : number​

Enumeration for Token Key

Kind: global constant

TOKEN_VALUE : number​

Enumeration for Token value

Kind: global constant

stripQuotes(string) ⇒ String​

Removes the quotes around a string

Kind: global function

ParamType
stringString

getContextInfo(editor, constPos, requireParent, requireNextToken) ⇒ Object​

Returns context info at a given position in editor

Kind: global function

ParamTypeDescription
editorEditor
constPosObjectPosition of cursor in the editor
requireParentBooleanIf true will look for parent key name
requireNextTokenBooleanif true we can replace the next token of a value.