Jump to content

Java Json Global Function for mods


Konijima

Recommended Posts

This post is for requesting two new global functions followed with a description and pro/con.

__________________________________________________________________


The functions:

Json Encode
A function to serialize data into a json string.

Json Decode
A function to deserialize a json string back into data.

__________________________________________________________________

We currently have access to an external LUA json library that works pretty well.
But using an Java version of it would save a lot of LUA calls and run much faster especially for serializing large amount of data.

The function de/serialize a Kalhua Table as a Json Array or a Json Object.

__________________________________________________________________

Pro:
- To use an exposed java json serializer would greatly improve the performance compared to using a LUA json script.

Con:
- Require TIS dev team to implement it and make it exposed and bug less.
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...