User Tag List

Results 1 to 3 of 3

Thread: Getting data from JSON object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting data from JSON object

    Hi, I'm using the JSON object and it I'm struggling to get data from it, and the example that comes with it isn't helping that much... First, I load this very simple json text:

    {"valores":{"jg":"1","n1":"Lucas","p1":"2","a1":"3 ","n2":"","p2":-1,"a2":-1,"n3":"","p3":-1,"a3":-1}}

    What should I do to get the string from "n1"?

  2. #2
    Clicker Fusion 2.5Android Export Module
    hamdi369's Avatar
    Join Date
    Feb 2015
    Location
    Strasbourg France
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i create a mfa with your example
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5Android Export Module
    hamdi369's Avatar
    Join Date
    Feb 2015
    Location
    Strasbourg France
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have to enter in object name "valores" first, (after loading the json string) then you can retrieve the values or strings (see code in mfa )

Similar Threads

  1. JSON Object
    By LB in forum Released Extensions
    Replies: 57
    Last Post: 28th August 2020, 12:02 AM
  2. JSON Object for Android
    By Lecherbault in forum Android Export Module 2.5
    Replies: 14
    Last Post: 21st February 2019, 02:32 PM
  3. Send JSON data from Click fusion 2.5
    By ramyhakam in forum Extension Development
    Replies: 18
    Last Post: 28th March 2016, 08:32 PM
  4. Can Fusin read data of .JSON files?
    By King_Cool in forum Fusion 2.5
    Replies: 6
    Last Post: 21st October 2015, 04:59 PM
  5. JSON Object ?
    By Rushino in forum Extension Development
    Replies: 0
    Last Post: 3rd April 2013, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •