Skip to content
#

JSON

json logo

JSON (JavaScript Object Notation) is a standard file format that uses text to communicate data objects to array data types. This notation makes it easy for applications to parse and generate files. JSON grew out of the need to have a real-time server-to-web browser communication.

Here are 1,178 public repositories matching this topic...

rszabolcs
rszabolcs commented Jun 30, 2021

Expected Behavior

As I currently understand it is not possible to make OPA decision based on body contents that has content type application/x-www-form-urlencoded.

Actual Behavior

Decision log says "content-type: application/x-www-form-urlencoded parsing not supported".
Also the parsed_body is empty:
`[
{
"type": "string",
"value": "parsed_body"
},

prateek
prateek commented Apr 27, 2020

Hey folks, thanks for a pretty bad ass library! I'm seeing a 3-3.3x gain when decoding fairly large JSON payloads (40-50MB) as compared stdlib/json-iterator.

Few things in the generated code that struck me as odd are the allocation sizes for slices/maps:

  • Slice is set to size 1 initially, values are appended using append
  • Map does not have a default size specified

Instead of this, I

Created by Douglas Crockford

Released 2005

Website
www.json.org
Wikipedia
Wikipedia