datasweet / jsonmap

Jsonmap is a Go package to parse and use raw json.

Home Page:https://www.datasweet.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonmap

Circle CI Go Report Card GoDoc GitHub stars GitHub license

datasweet-logo

Jsonmap is a Go package to parse and use raw JSON with silent as Javascript language. Jsonmap was inspired by go-simplejson and the lodash javascript library.

Installation

go get github.com/datasweet/jsonmap

Usage

Parsing a new json

import (
  "fmt"
  "github.com/datasweet/jsonmap"
)

func main() {
  j := jsonmap.FromString(`{ "the": { "best": { "pi": 3.14 } } }`)
  i := j.Get("the.best.pi").AsInt()
  fmt.Println(i)
}

Lodash utilities

You can use some lodash function utilities :

  • Filter
  • Map
  • Assign
  • etc.

Tabify

Tabify was created to flatten a json into tabular datas. We created this functionality to flatten json response from elasticsearch.

Who are we ?

We are Datasweet, a french startup providing full service (big) data solutions.

Questions ? problems ? suggestions ?

If you find a bug or want to request a feature, please create a GitHub Issue.

License

This software is licensed under the Apache License, version 2 ("ALv2"), quoted below.

Copyright 2017-2020 Datasweet <http://www.datasweet.fr>

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

About

Jsonmap is a Go package to parse and use raw json.

https://www.datasweet.fr

License:Apache License 2.0


Languages

Language:Go 100.0%