rec2json - Compile erlang record definitions into modules to convert them to/from json easily.

  •        18

Rec2json is a parse transform that takes a module which defines a record of the same name and adds to_json, from_json, and introspection functions. The to_json and from_json convert to and from the map based format used by jsx and other json encoding and decoding libraries. The rec2json parse_transform looks for a record with the same name as the module. It doesn't matter whether the record was defined directly in the module or in an include file.

https://github.com/lordnull/rec2json

Tags
Implementation
License
Platform

   




Related Projects

Json-to-HTML-Table - Simple Json to standard HTML table converter in fastest way

  •    Javascript

Simple Json to standard HTML table converter in fastest way

json - A free, in-browser JSON to CSV converter.

  •    Javascript

A simple JSON to CSV converter that handles objects and nested documents. Conversion happens inside the browser, in straight JavaScript. It may choke on large files.

jquery.dform - A flexible JavaScript Object and JSON to HTML converter with a focus on forms

  •    Javascript

A flexible JavaScript Object and JSON to HTML converter with a focus on forms

remarshal - Convert between TOML, YAML and JSON

  •    Python

Convert between TOML, YAML and JSON. When installed provides the command line commands toml2yaml, toml2json, yaml2toml, yaml2json. json2toml and json2yaml for format conversion as well as toml2toml, yaml2yaml and json2json for reformatting and error detection. You will need Python 2.7 or Python 3.3 or later.

humps - 🐫 Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript

  •    Javascript

Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript. When converting object keys, it will walk the structure, converting any nested objects (or arrays of nested objects) along the way. Handy for converting JSON between JavaScript and Ruby/Rails APIs.


jquery.dform - A flexible JavaScript Object and JSON to HTML converter with a focus on forms

  •    Javascript

The jQuery.dForm plugin generates HTML markup from JavaScript objects and JSON with a focus on HTML forms. Will append an empty <span id="the-span"></span> to the selected element.

JsonFx.NET - JSON serialization framework for .NET

  •    CSharp

JsonFx v2.0 - JSON serialization framework for .NET. It has unified interface for reading / writing JSON, BSON, XML, JsonML. It implements LINQ-to-JSON, Supports reading/writing using DataContract, XmlSerialization, JsonName, attributes and lot more.

pikkr - JSON parser which picks up values directly without performing tokenization in Rust

  •    Rust

Pikkr is a JSON parser which picks up values directly without performing tokenization in Rust. This JSON parser is implemented based on Y. Li, N. R. Katsipoulakis, B. Chandramouli, J. Goldstein, and D. Kossmann. Mison: a fast JSON parser for data analytics. In VLDB, 2017. This JSON parser performs well when there are a limited number of different JSON structural variants in a JSON data stream or JSON collection, and that is a common case in data analytics field.

JSON-java - A reference implementation of a JSON package in Java

  •    Java

A reference implementation of a JSON package in Java. The files in this package implement JSON encoders/decoders in Java. It also includes the capability to convert between JSON and XML, HTTP headers, Cookies, and CDL.

json - JSON for Modern C++

  •    C++

Intuitive syntax. In languages such as Python, JSON feels like a first class data type. We used all the operator magic of modern C++ to achieve the same feeling in your code. Check out the examples below and you'll know what I mean.Trivial integration. Our whole code consists of a single header file json.hpp. That's it. No library, no subproject, no dependencies, no complex build system. The class is written in vanilla C++11. All in all, everything should require no adjustment of your compiler flags or project settings.

JSON.NET - JSON framework for .NET

  •    CSharp

Json.NET is a popular high-performance JSON framework for .NET. It is serializes .NET objects to JSON. It converts JSON to LINQ, XML and lot more. It performs faster than .NET buit in serializers.

JSV - A JavaScript implementation of an extendable, fully compliant JSON Schema validator.

  •    Javascript

A JSON validator is a program that takes JSON data and, with a provided schema, will ensure that the provided JSON is structured in the way defined by the schema. This ensures that if validation has passed, the JSON instance is guaranteed to be in the expected format. It will also provide an explanation on why a particular instance failed validation. There is no one way to validate JSON, just like there is no one way to validate XML. Even the JSON Schema specification has gone through several revisions which are not 100% backwards compatible with each other. To solve the issue of using numerous schemas already written to older specifications, JSV provides customizable environments to validate your JSON within.

Noggit - JSON streaming parser

  •    Java

Noggit is the world's fastest streaming JSON parser for Java. It is used in Apache Solr.

Flexjson - Lightweight JSON parser

  •    Java

Flexjson is a lightweight library for serializing Java objects into JSON. What's different about Flexjson is it's control over what gets serialized allowing both deep and shallow copies of objects.

pljson - PL/JSON is a generic JSON object written in PL/SQL

  •    PLSQL

PL/JSON provides packages and APIs for dealing with JSON formatted data within PL/SQL code. General information about JSON is available at http://www.json.org. All pljson types and packages start with 'PLJSON'. In earlier releases they started with 'JSON', but this conflicted with new native json support in Oracle 12c so they were renamed to start with PLJSON, However, during installation we create synonyms that start with JSON (e.g. JSON_LIST is synonym for PLJSON_LIST).

jose-jwt - Ultimate Javascript Object Signing and Encryption (JOSE) and JSON Web Token (JWT) Implementation for

  •    CSharp

Minimallistic zero-dependency library for generating, decoding and encryption JSON Web Tokens. Supports full suite of JSON Web Algorithms as of July 4, 2014 version. JSON parsing agnostic, can plug any desired JSON processing library. Extensively tested for compatibility with jose.4.j, Nimbus-JOSE-JWT and json-jwt libraries.v2.1 and above added extra features support for .NET461+ and coming with 3 version of binaries (NET4, NET461 and netstandard1.4).

jolt - JSON to JSON transformation library written in Java.

  •    Java

JSON to JSON transformation library written in Java where the "specification" for the transform is itself a JSON document.Each transform has it's own DSL (Domain Specific Language) in order to facilitate it's narrow job.

jsonld.js - A JSON-LD Processor and API implementation in JavaScript

  •    Javascript

This library is an implementation of the JSON-LD specification in JavaScript. JSON, as specified in RFC7159, is a simple language for representing objects on the Web. Linked Data is a way of describing content across different documents or Web sites. Web resources are described using IRIs, and typically are dereferencable entities that may be used to find more information, creating a "Web of Knowledge". JSON-LD is intended to be a simple publishing method for expressing not only Linked Data in JSON, but for adding semantics to existing JSON.

Jackson JSON - JSON Parser in Java

  •    Java

Jackson is a multi-purpose Java library for processing JSON data format. This project contains core low-level incremental ("streaming") parser and generator abstractions used by Jackson Data Processor. It also includes the default implementation of handler types (parser, generator) that handle JSON format.

spray-json - A lightweight, clean and simple JSON implementation in Scala

  •    Scala

spray-json is a lightweight, clean and efficient JSON implementation in Scala. spray-json is available from maven central.