[Free] Json To Dictionary Extension

Json To Dictionary Extension

Release date : 2020-10-24T23:00:00Z
Last Update Date : 2020-10-24T23:00:00Z
Current Version: 1
Min. Api version : 1 ( Works on every android version :wink: )
Ending Date :bomb: : ( When kodular add it as a built in block )

Description

Hello, every one ! Today i release my very first extension ! Json To Dictionary , i actually made it after seeing this topic : Request for JSON decode to dictionary, to parse json text to dictionaries till kodular bring this block , @WatermelonIce and @The_K_Studio requested me to share it in a new topic ( actually i didnā€™t release it because i thought it would be added in one week or something ) , but until this block is here, you can feel free to use my extension :wink: There are some other possible ways with kodularā€™s built in blocks : Kodular has removed Json component? - #21 by Peter But it might return wrong results as in this thread: JSON text decode problem, i actually published the extension here before : Request for JSON decode to dictionary - #2 by Mohamed_Tamer in 2020-08-03T23:00:00Z, but now i rewritten and optimize the code a lot, so it works more properly.


Blocks

Just 2 blocks :man_shrugging:
image


Documentation

JsonTextDecodeWithDictionaries

component_method (93)

Decodes the given JSON text into appinventor dictionary.
Returns: Object ( a list of dictionaries if it was a JSON array, an empty string if there was an error, a dictionary if it was a normal JSON.
jsonText (String): The json text to decode.

Error

component_event (24)

Fired when an error occurs while decoding the JSON text.
error Message (String): The error that occurred.


How to use it?

Here is an example with a json api ( http://worldtimeapi.org/ ) about how to use it:




P.S: the clock just for updating the time, the error occurred event is used to detect that the web component threw an error, for ex: there was no internet connection.


Donā€™t know about dictionaries?

Dictionaries are much powerful then lists and itā€™s really useful for JSON apis, if you donā€™t know about Dictionaries, go and check this guide:


Download Links

AIX : io.mohamed.JsonToDictionary.aix (6.3 KB)


How it works with a json api ( http://worldtimeapi.org/ ):

AIA : JsonTextDecodeWithDictionaries.aia (49.8 KB)
APK: JsonTextDecodeWithDictionaries.apk (5.5 MB)

Credits

I hope you liked this extension! I would like to thank
@The_K_Studio @WatermelonIce for asking me to release it in a new topic :sweat_smile:
@AI2 for their JsonUtils class , which i have used in my extension.
And any one who liked this extension , too!
Also for :kodular: for this amazing platform :grinning:
Actually that was my very first extension ( it was released almost 3 months ago) so iā€™m sorry if it have any bugs :sweat: If there is any, please report it here :wink:

Note: this extension would be obsolete when kodular implement it as a block.It wonā€™t cause any conflict but it would be no longer useful.

Thanks!
Mohamed Tamer

34 Likes
Decode Json with Dictionary block
Read specific sub object and Json array
Firebase database - how to create a list from array
:firebase: How to get value from multiple buckets from Database
How to get a text from Web Component
Help with JSON, I am Using Jsontool extension
How can i request data from fire base
How to get List from json
Google Books Api
Search system with large json
Search system with large json
Json-array please i need help
How to Get data form API
Curl error 1101 (unable to get a response...)
(ask) how to open link at airtable
How to parse JSON array using JSONTools or JSONUtils
Try to get data from Airtable API
Any help with cURL implementation? Cant figure out anything . Saw many posts
JSON to blocks. Cant quite understand
Unable to get the data from the API
Get Json value and show it as list view
The second argument to foreach is not a list
Quotes api little help
Convert Firebase dictionary to text file in the assets so it can be retrieved again as dictionary variable
Read data of file api
[GUIDE] Kodular + Discourse Community Implementation
Problem with data response
Looking for Guidance about Kodular and MySQL using PHP
Problem with data response
Need help with json
Get Single Column List From Multiple Column Response SQL[Json] Alternative for Deephost sql extension
Reverse geocoding
Json data arranging with dictionary
Index of Available Extensions
API Returns too much data - Need to extract
Trouble in converting json to Dictionary
Show all airtable lines
Need help with this Sample json
Get Value from this? Urgent
How to Get Data from web json
I'm trying to make a table list using TableView extension and Airtable. I need your help
[Guide] How to use RecyclerList extension with Airtable - Custom Search
Call data from firebase to Dynamic CardView
Help me with this api
Not a well-formed list of pairs - except it is
Saving Json as File And Reading it as Dictonary
Help in Decode Json
Why i am not getting the image from airtable attachment
How to view a List View Image and Text with this JSON?
Airtabale attachment images show app

great extension also!

1 Like

how do you create a table of contents?

1 Like

Thanks :grinning:

#off-topic

Create / Edit a topic, click the settings icon , and then choose Insert Table Of contents :
image
The items in the table, are indicated by making the item you want a heading using markdown ( # ) or html ( <h1>, <h2>,etc.), for example:

# My item 1
Some text
Some text
# My Item 2 
Some Text 
Some text

You can also create nested items this way:

# My item 1
Some text
Some text
## My Sub Item 1
Some text
# My Item 2 
Some Text 
Some text

You can change the number of # to specify the heading size in mark down or the number beside h to specify the heading size in html <h1>, <h2>

i put # generally, on my extension i done it and no table of contents.

### right?

#off-topic
You should add this first :

Any ways, let us donā€™t go #off-topic :slightly_smiling_face:

1 Like

Great extension :partying_face:

1 Like

Awesome extension.
Great work.
Congratulation.

1 Like

Thank you so much for this extension :heart: It has helped me so much (especially handling large amount of data)

1 Like

Awesome work man! :heart_eyes: Very useful extension.

1 Like

Great extension, @Mohamed_Tamer! :+1:

1 Like

First extension???
:thinking: :smile:

2 Likes

That is the first in this community, it is just a reupload with a new topic :sweat_smile:

1 Like

Very Helpful Extension

1 Like

Yes I know that. A traditional copy-paste mistake
:joy:

3 Likes

Nice extension.
The name of the block is so long.
String2Dictionary will be nice

2 Likes

Edit: This method seems not working always.

We can also do it like this.

blocks (74)

5 Likes

Not always, see why hereā€¦

2 Likes

Thanks @hammerhai @marco_tanzi @WatermelonIce @The_K_Studio @FahadAhmad @Srrazmi @Vaibhav @sonumohammad333 @AryanGupta for your posts :smiling_face_with_three_hearts: And every one else how liked this extension :grin:

Itā€™s really my first extension to share in the community :grin: But actually I didnā€™t create a new topic for it, thatā€™s why I said itā€™s my first extension :blush:

Thanks for your suggestion , I will consider renaming it , in the next update maybe 1
!

6 Likes