senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.96k stars 311 forks source link

Jsonic: [SyntaxError: Expected "[", "false", "null", "true", "{", [^,}\]], double-quote string, number or single-quote string but "}" #881

Open 1fabiopereira opened 3 years ago

1fabiopereira commented 3 years ago

When I try to start my applicattion I get error:

/node_modules/seneca/node_modules/jsonic/jsonic.js:2084
      throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos);
      ^
[SyntaxError: Expected "[", "false", "null", "true", "{", [^,}\]], double-quote string, number or single-quote string but "}" found.] {
  expected: [
    { type: 'literal', value: '[', description: '"["' },
    { type: 'literal', value: 'false', description: '"false"' },
    { type: 'literal', value: 'null', desc

Someone know how can I fix itt?

rjrodger commented 3 years ago

this occurs when using the abbreviated json strings to specify messages - there is a syntax error - later lines in the stack trace should show where

this should be a FAQ entry