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
| Param | Type |
|---|---|
| string | String |
getContextInfo(editor, constPos, requireParent, requireNextToken) ⇒ Object
Returns context info at a given position in editor
Kind: global function
| Param | Type | Description |
|---|---|---|
| editor | Editor | |
| constPos | Object | Position of cursor in the editor |
| requireParent | Boolean | If true will look for parent key name |
| requireNextToken | Boolean | if true we can replace the next token of a value. |