stretchr / objx

Go package for dealing with maps, slices, JSON and other data.
MIT License
687 stars 75 forks source link

Add helpers for slice of Map #102

Closed vyskocilm closed 3 years ago

vyskocilm commented 3 years ago

Summary

objx can't work with JSON documents starting with top-level array. This commit adds helpers FromJSONSlice and MustJSONSlice. Those returns []Map enabling objx usage for this case as well.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

geseq commented 3 years ago

cc @hanzei