Class | JSON::Parser |
In: |
lib/facets/more/json.rb
|
Parent: | StringScanner |
STRING | = | /"((?:[^"\\]|\\.)*)"/ |
INTEGER | = | /-?\d+/ |
FLOAT | = | /-?\d+\.(\d*)(?i:e[+-]?\d+)?/ |
OBJECT_OPEN | = | /\{/ |
OBJECT_CLOSE | = | /\}/ |
ARRAY_OPEN | = | /\[/ |
ARRAY_CLOSE | = | /\]/ |
PAIR_DELIMITER | = | /:/ |
COLLECTION_DELIMITER | = | /,/ |
TRUE | = | /true/ |
FALSE | = | /false/ |
NULL | = | /null/ |
IGNORE | = | %r( (?: //[^\n\r]*[\n\r]| # line comments /\* # c-style comments (?: [^*/]| # normal chars /[^*]| # slashes that do not start a nested comment \*[^/]| # asterisks that do not end this comment /(?=\*/) # single slash before this comment's end )* \*/ # the end of this comment |\s+ # whitespaces )+ )mx |
UNPARSED | = | Object.new |