[Plugin] Hash table

Post your completed addons to share with the community

Post » Tue Dec 16, 2014 9:00 am

Please tell me how to use this plugin to read json in hashtable.....I did one thing. ....I loaded Ajax.lastdata with json string then I used load hashtable with string property and loaded ajax.lastdata in it.....Nothing happened.....Please tell me the right way to use this.....
B
4
Posts: 13
Reputation: 224

Post » Tue Dec 16, 2014 9:15 am

@chinmay

Yann's JSON plugin might be more powerful then mime. You could try it.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Dec 16, 2014 10:54 am

Hi......Sorry I parsed one row.....perfect....But is it possible to parse multiple rows.....Like if I want to parse:

[{"id":23,"firstName":"Meghna","lastName":"Naidu","email":"meghna@gmail.com","phone":"8978767878"},{"id":3,"firstName":"Robert","lastName":"Parera","email":"robert@gmail.com","phone":"8978767878"},{"id":93,"firstName":"Andrew","lastName":"Strauss","email":"andrew@gmail.com","phone":"8978767878"},{"id":239,"firstName":"Eddy","lastName":"Knight","email":"knight@gmail.com","phone":"7978767878"}]..........


Is it possible to parse all these rows?
B
4
Posts: 13
Reputation: 224

Post » Wed Dec 17, 2014 2:33 am

@chinmay

Try remove new line at each line end in your case.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Mar 02, 2015 1:25 pm

what is your hash tables algorithm complexity for insert/remove/read(search/find)?
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
29
S
10
G
11
Posts: 600
Reputation: 8,259

Post » Mon Mar 02, 2015 2:40 pm

saiyadjin wrote:what is your hash tables algorithm complexity for insert/remove/read(search/find)?

Sorry, I don't know. It uses javascript's object (hash table) feature.
Here is another JSON plugin which had more complete functions.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Mar 02, 2015 10:22 pm

https://jsperf.com/objectsashashes

seems that complexity is still O(1) for all, but real performance (in Opera) is solid, except for destroying - where it's bad.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
29
S
10
G
11
Posts: 600
Reputation: 8,259

Post » Tue Jun 07, 2016 3:45 am

I rewrote the document. Now this plugin is supported again.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Jun 14, 2016 12:18 pm

Update

Add rex_bHash behavior, a behavior version of hash table (JSON).
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Aug 08, 2016 2:08 pm

Can i use "JSONPath"? Like "XPath"?
B
11
S
5
G
2
Posts: 68
Reputation: 2,038

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests