Asynchronous JSON Decoder

Released 4 years ago , Last update 10 months ago

Extremely lightweight JSON decoder with all the features you can possible want.

A fully featured but lightweight JSON decoder component. Decodes a JSON string into an object using the following features:

  • Extremely lightweight with blazing performance
  • Async decoding with various settings like max processing time, max time for the whole decoding
  • Auto reprocessing, time to delay before the next async call
  • Decodes strings and keys enclosed with " or ' (can decode keys without any quotes)
  • Block and inline comments are available with export option during the decoding process
  • Exports tags from the value field (supports custom tag names by calling mapped methods)

Script Tag Evaluation Plugin is included in this package with the open source Hurlant Evaluation Library

Examples are included

5.0
  • 5 1
  • 4 0
  • 3 0
  • 2 0
  • 1 0
1 Reviews Read Reviews

Pricing

FREE

BSD license

The BSD license is an open-source license.

Async decoding

var decoder:JSONDecoder=new JSONDecoder();
decoder.addEventListener(Event.COMPLETE, OnDecoded);

JSONDecoder.DefaultAsyncIterationsPerMs=1500;//default iterations for 1ms - use with maxAsyncProcessTime

decoder.maxAsyncProcessTime=30;//default time in ms to process 1 async decoding frame, very useful when working with really large json objects in order to prevent application halting!

decoder.maxAsyncTime=2000;//default time in ms to prevent application halting - reduces iterations when reached

decoder.asyncTime=0;//default time to wait before the next async decoding

decoder.autoReprocessBelowPercent=.7;//default autoreprocess time - when 1 async decoding frame is finished there's a chance to process another one, if the desired iterations per frame are processed for less time

decoder.exportComments=true;//default is false - marks the option to export the string content of the inline/block comments
//Use decoder.exportedComments to access them

decoder.DecodeString(jsonString, null, true);

function OnDecoded(event:Event) : void
{
    var decodedData:Object=decoder.output[0];//Note that every json structure is considered an array. In most cases you'll get the zero indexed object
}
1 license From » FREE View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
No comments have been posted yet.