sarathsp06/gojson

If string contains '.' it breaks.

Closed this issue · 2 comments

If string contains '.' it breaks.

main.go uses: keys := strings.Split(key, ".") to separate the command.

Would adding a feature of quoting keys with . using ' be a better alternative ?

The it would be

  • Default behaviour split by .
  • If there are ' anything in between them are considered as one key
  • Keys should still be sprated with . but can be wrapped using ' for escaping . inside ke