File format definition used by the GeSeq annotation software to represent GenBank data as JSON.
An example output can be found here: GBSON-Example.json.
To use GBSON in your application you can use any standard JSON parser. If you are programming in JavaScript, just do
const data = JSON.parse(gbson);
In TypeScript you should add the type declaration from this repository to get full IDE support
import { GBSON } from "./GBSON";
const data:GBSON = JSON.parse(gbson);
And access the data like this
const gene = data.features[0].gene;
complement(join(125294..125832,126877..127429))
{ "complement" : { "joined" : [ [ 125294, 125832 ], [ 126877, 127429 ] ] } }
An advantage of using JSON over GenBank or GFF is its intrinsic capability to express nested structures: