Skip to content

Commit

Permalink
formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryGH committed May 16, 2021
1 parent a6224c4 commit 1ca8232
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#JSON++
##Objective
The objective of this project is to provide a practical implementation of JSON parsing and stringingifications with added functionality and versatility over the JSON standard.
# JSON

## Objective

The objective of this project is to provide a practical implementation of JSON parsing and stringification with added functionality and versatility over the JSON standard.

-------------------------

## Additional Features

### Lambdas

##Additional Features
###Lambdas
Contextless lambda expressions are supported within this library, for example:

JSONPP.stringify({
Expand All @@ -22,7 +28,7 @@ will produce:

and translate back to the original object via `JSONPP.parse()`.

###Object References
### Object References

JSON++ handles circular object references by reducing all references to the same object to a path-based identifier.

Expand Down Expand Up @@ -70,7 +76,8 @@ as well as the following for arrays:
}
]

###Root Level Arrays
### Root Level Arrays

This JSON interpreter allows for root-level arrays, for example:

JSONPP.stringify([
Expand All @@ -95,7 +102,8 @@ will yield:

and will translate back to the original array via `JSON.parse()`.

###Type Preservation
### Type Preservation

Type preservation is possible assuming definitions of types exist on the `parse` end of the data, otherwise `Object` instantiation will occur as normal JSON would. Example:

class Foo {
Expand Down

0 comments on commit 1ca8232

Please sign in to comment.