davesnx / query-json

Faster, simpler and more portable implementation of `jq` in Reason

Home Page:https://query-json.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing better errors

davesnx opened this issue · comments

  • Acessing a key that doesn't exist
  • Map over object: "Can't map function over non-array type object"
  • Error: "[] " doesn't work in q, use . | map
  • --Set any Map() to be Map(Identity)--
  • --any Filter() to be Filter(True)--
  • esy q -- --kind="inline" '.' '{ "asdf: 123 }' → Yojson.Json_error("Line 1, bytes 13-14:\nUnexpected end of input")
  • esy q -- --kind="inline" 'mierda' '{ "asdf: 123 }' -> function "mierda" is not defined, if you think it's missing open an issue ++ bugUrl
  • ".%" Improve errors of undefined sedlexes of strings: Failure("Unexpected character """)

Fixed on v0.5.3. The biggest issues was Unexpected character, more errors will appear!