[GODRIVER-514] Implement ExtJSON Reader using custom JSON parser & Implement extJSONValueReader and extJSONValueWriter Created: 31/Jul/18  Updated: 28/Oct/23  Resolved: 11/Oct/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 0.0.16

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Matthew Chiaravalloti
Resolution: Fixed Votes: 0
Labels: FY2019Q3, beta
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current extended JSON parser uses a JSON parser that can only decode JSON using callbacks. The new encoder and decoder design requires a parser that acts like a state machine. The standard library json.Decoder provides the primitives to do this via the Token method. Build an Extended JSON parser on top of the json.Decoder that operates on a slice of bytes. The standard library json.Decoder does not provide the promise nor the necessary peek functionality to create a non-complex extended JSON parser. Since we will not need anything more than a JSON scanner that can peek inside an object, implement a JSON parser that is RFC 8259 compliant.

 

Additionally, implement an extended JSON ValueReader on top of this Extended JSON parser and JSON ValueWriter.



 Comments   
Comment by Githook User [ 11/Oct/18 ]

Author:

{'name': 'Matthew Chiaravalloti', 'email': 'matthew.chiaravalloti@mongodb.com', 'username': 'mattChiaravalloti'}

Message: Implement new extended JSON parser

GODRIVER-514

Change-Id: I59e18824178c36ab37af5c3cc97f0575c0c2f709
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/429d6125b0986b4815c2b2a33a2e8bf36d5f9c60

Generated at Thu Feb 08 08:34:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.