Git Product home page Git Product logo

rapidjsonplugin's Introduction

RapidJsonPlugin

RapidJson Plugin for UnrealEngine 4

RapidJson is A fast JSON parser for C++. The purpose of this plug-in is to make RapidJson easy and simple to use, inspired by msgpack-c. This was implemented using template and MACRO, using better-enums to help stringify enum.

Example

JSON_MAKE_ENUM(Word, int, Hello, World);
JSON_EXTERNAL_DEFINE(FVector, X, Y, Z);

struct Sample_member_struct
{
  TArray<int32> Arr;
  TArray<FVector> Arr2;
  Word Word;
    
  JSON_DEFINE(Arr, Arr2, Word);
};

struct Sample_struct
{
  int32 TestInt;
  FString TestStr;
  sample_member_struct My_struct;

  JSON_DEFINE(TestInt, TestStr, My_struct)
};

Sample_member_struct member;
member.Arr = { 1,2,3,4,5 };
member.Arr2 = { FVector(1,2,3), FVector(2,3,4) };
member.Word = Word::World;
Sample_struct sample = { 1, TEXT("HELLO"), member };

auto json = Json::SerializeToJson(sample);
auto sample2 = Json::DeserializeFromJson<Sample_struct>(json);

sample == sample2

rapidjsonplugin's People

Contributors

crocuis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

benpuckett

rapidjsonplugin's Issues

Licensing. Is this amazing plugin open for use to anyone?

Hi

I just tested your module and it is incredible, it serialized 5x faster then the standard one from Epic!

I have a plugin on the marketplace and i would like to use this with my plugin but i can't find any information regarding licensing.

Does it have a standard MIT license so anyone can use it commercially?

All the Best,
Alex.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.