Git Product home page Git Product logo

Comments (8)

manishrjain avatar manishrjain commented on May 14, 2024

Should lie in a separate repo, say dgraph-io/json, so people can go get it without pulling any other dependencies.

from dgraph.

jcmartins avatar jcmartins commented on May 14, 2024

Maybe samething like this ?

package main

import (
"bytes"
"encoding/json"
"fmt"
)

func main() {
b := []byte({"hello": "123"})
b, _ = prettyprint(b)
fmt.Printf("%s\n", b)
}

func prettyprint(b []byte) ([]byte, error) {
var out bytes.Buffer
err := json.Indent(&out, b, "", " ")
return out.Bytes(), err
}

from dgraph.

manishrjain avatar manishrjain commented on May 14, 2024

Yeah, something similar. Another contributor is building this tool right now.

from dgraph.

manishrjain avatar manishrjain commented on May 14, 2024

Write a Go JSON parser

from dgraph.

manishrjain avatar manishrjain commented on May 14, 2024

Tracking in Trello. Closing here.

from dgraph.

ofek avatar ofek commented on May 14, 2024

@manishrjain What is the issue?

from dgraph.

benjamin-rood avatar benjamin-rood commented on May 14, 2024

Do you still want help with this? In Trello it's archived.

from dgraph.

manishrjain avatar manishrjain commented on May 14, 2024

Nvm. It's a small one that we can just hack up quickly. Closing.

from dgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.