Skip to content

nodefortytwo/json-stream-split

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-stream-split

Simple library that will split json objects out of a io.reader

It was developed to handle processing of aws firehose s3 objects where record delimiter was not set.

Usage

package main

import (
    os

    github.com/nodefortytwo/json-stream-split
)

func main(){
    reader, err := os.Open("someHugeFile")
    if err != nil {
        panic(err)  
    }
    
    events, err := jsonstreamsplit.Split(reader)
    ...

}

About

splits json objects out of a stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages