tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
14.1k stars 846 forks source link

how to get the last element in an array? #262

Closed jianmaikj closed 2 years ago

jianmaikj commented 2 years ago

I tried using -1 and it doesn't seem to work

jianmaikj commented 2 years ago

I just found out that reverse can be used