LiveCode Create 1.0 dp-2 released with engine level JSON

2024-08-21 Thread Heather Laine via use-livecode
Hi Folks, We're pleased to announce a new release of LiveCode Create, dp-2. In this release the major feature is new, improved, engine level JSON, available to Create Cloud, Create Native and the embedded Create Classic option within Create Native. To learn more about the JSON improvement

Re: JSON

2023-08-15 Thread Tore Nilsen via use-livecode
ding on the content > of the file: > > Array (for a JSON object) > List (for a JSON array) > String (for a JSON string) > Number (for any JSON number) > Boolean (for JSON true or false) > nothing (for JSON null) > How would an array of objects be translated? What is nothi

Re: JSON

2023-08-15 Thread Dar Scott via use-livecode
Thanks, Tore! I found these in the dictionary. For JsonImport I noted this: The return value may be any of the following types, depending on the content of the file: Array (for a JSON object) List (for a JSON array) String (for a JSON string) Number (for any JSON number) Boolean (for JSON true

Re: JSON

2023-08-14 Thread Richmond Mathewson via use-livecode
This has recently been explored across on the forums where I managed to expose my full level of ignorance on the subject. Best, Richmond. On Tue, 15 Aug 2023, 07:59 Tore Nilsen via use-livecode, < use-livecode@lists.runrev.com> wrote: > JsonImport will make an array of your JSON data

Re: JSON

2023-08-14 Thread Tore Nilsen via use-livecode
JsonImport will make an array of your JSON data, whereas JsonExport will turn your array into JSON data. Not much fiddling there. Best regards Tore Nilsen > 15. aug. 2023 kl. 02:07 skrev Dar Scott via use-livecode > : > > > I’m about write some scripts that fiddle with JSON.

JSON

2023-08-14 Thread Dar Scott via use-livecode
I’m about write some scripts that fiddle with JSON. I have some old stacks of mine about someplace. But, I got to thinking there might be something faster about someplace. Ideas? Dar ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Inclusions and JSON

2023-05-10 Thread matthias rebbe via use-livecode
Me too and, if not yet completely fixed, the supported platforms correctly shown. > Am 10.05.2023 um 21:14 schrieb Mark Smith via use-livecode > : > > I’d be happy to just have it sort by name. > >> On 10 May 2023, at 2:56 pm, Ben Rubinstein via use-livecode >> wrote: >> >> Further to this

Re: Inclusions and JSON

2023-05-10 Thread Mark Smith via use-livecode
I’d be happy to just have it sort by name. > On 10 May 2023, at 2:56 pm, Ben Rubinstein via use-livecode > wrote: > > Further to this: dear LiveCode, please make the Inclusions selector in the > standalone settings window navigable - at least sortable by name, platform, > selected; even-bett

Re: Inclusions and JSON

2023-05-10 Thread J. Landman Gay via use-livecode
Inclusions selector in the standalone settings window navigable - at least sortable by name, platform, selected; even-better-if can be filtered. See also https://quality.livecode.com/show_bug.cgi?id=18199, which includes a comment in 2017 specifically referencing 'json' as a use-case for filte

Re: Inclusions and JSON

2023-05-10 Thread Ben Rubinstein via use-livecode
specifically referencing 'json' as a use-case for filtering. And apparently Ali Lloyd did exactly this six years ago: https://github.com/livecode/livecode-ide/pull/1809 ... but nobody has ever reviewed the pull request. :-( Ben On 10/05/2023 00:57, Paul Dupuis via use-livecode wrote:

Re: Inclusions and JSON

2023-05-09 Thread Paul Dupuis via use-livecode
NEVER MIND. I just realized that JSONToArray is part of the mergeJSON library and not part of the JSON library! Dear Livecode: For the JSON ignorant among us, could we just have one JSON library - by whatever name! On 5/9/2023 7:30 PM, Paul Dupuis via use-livecode wrote: I have a stack that

Inclusions and JSON

2023-05-09 Thread Paul Dupuis via use-livecode
jsonToArray call in the standalone. I do manual inclusions in the Standalone settings since the plugins are external stacks loaded into the standalone by user command. Automatic inclusions won't find the not-yet-loaded external stacks to find the JSON library calls. I have included the

Re: JSON to Datagrid

2021-12-08 Thread Tom Glod via use-livecode
JSONToArray works well for me if your JSON is correct. Always use try when decoding from JSON to catch any errors. On Wed, Dec 8, 2021 at 12:58 PM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > completely off the top of my head, so this might not be qu

Re: JSON to Datagrid

2021-12-08 Thread Mike Kerner via use-livecode
a two-step process to get JSON into > the Tree widget and a similar process may provide a direction of travel to > test…? > > 1. JSON-to-array > https://lessons.livecode.com/m/4071/l/1303394-how-to-read-in-data-from-a-json-file > 2. Setting the array data of datagrid… > > Good

Re: JSON to Datagrid

2021-12-08 Thread Keith Clarke via use-livecode
Hi Skip, I don’t use Datagrids but have used a two-step process to get JSON into the Tree widget and a similar process may provide a direction of travel to test…? 1. JSON-to-array https://lessons.livecode.com/m/4071/l/1303394-how-to-read-in-data-from-a-json-file 2. Setting the array data of

Re: JSON to Datagrid

2021-12-08 Thread Skip Kimpel via use-livecode
To functions actually needed... need to be able to convert to a datagrid and I will be also pumping this data into a SQL server. SKIP On Wed, Dec 8, 2021 at 11:15 AM Skip Kimpel wrote: > I have been googling a solution for this but have not found a solid > solution for this. > > Can anybody lea

JSON to Datagrid

2021-12-08 Thread Skip Kimpel via use-livecode
I have been googling a solution for this but have not found a solid solution for this. Can anybody lead me in the right direction on this? SKIP ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe a

Re: Storing json - mergeJSON, textdecode and "\u00a0”

2021-08-26 Thread Keith Clarke via use-livecode
Not sure if it’s related but I had issues recently with processing JSON on Mac with PHP and attempts to force encoding/decoding of the JSON didn’t work. It was an encoding issue caused by the JSON strings being served into HTML pages that lacked an explicit UTF-8 tag. Adding '> replace

Storing json - mergeJSON, textdecode and "\u00a0”

2021-08-26 Thread David Bovill via use-livecode
An update on my flailing attempts to get a robust way to go Fromm arrays to json and back. Essentially the story is stuff that works on OSX fails now and then on the server - and I’m trying to track down why? It’s an intermittent problem and hard to pinpoint as the json files have a lot of

Best practice storing json?

2021-08-15 Thread David Bovill via use-livecode
I’ve been historically a bit lazy in taking care of how I store json data - so mostly it works but some times I get a different result on the server than I do locally on OSX. I suspect this is due to encoding differences in how the data is stored and which characters are in the json. I’d like

Re:TIL: JSON validator

2020-10-01 Thread Jim Lambert via use-livecode
Mark, Thanks for those useful links. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecod

TIL: JSON validator

2020-09-30 Thread Mark Wieder via use-livecode
I've been in the DeveloperWeek conference for the last couple of days, and in a morning session today about OpenAPI I learned about an online JSON Schema validator tool. https://www.jsonschemavalidator.net/ Also, this JSON/YAML linter may be of use: https://meta.stoplight.io/docs/spe

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-13 Thread Bleiler, Timothy via use-livecode
sions using Livecode to access REST API’s >> from web services, so I’m hoping someone can help me out here. >> I need to access a web service (Box.com<http://Box.com>) from my Livecode >> app using JSON web tokens. >> The service documentation states that they only s

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Mark Wieder via use-livecode
On 11/12/19 2:06 PM, Mark Wieder via use-livecode wrote: That will give you both the private and public keys to pass to the Box api. Urk. Misspoke that sentence. Obviously you don't want to send the private key. -- Mark Wieder ahsoftw...@gmail.com

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Mark Wieder via use-livecode
web service (Box.com<http://Box.com>) from my Livecode app using JSON web tokens. The service documentation states that they only support RS256, RS384, and RS512 for hashing the signature in the token. Unfortunately, in the 139 options and variations listed by the Livecode CipherNames func

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Tom Glod via use-livecode
conferences and Livecode Global sessions using Livecode to access REST > API’s from web services, so I’m hoping someone can help me out here. > > I need to access a web service (Box.com<http://box.com/><http://Box.com< > http://box.com/>>) from my Livecode > app

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Bleiler, Timothy via use-livecode
ivecode to access REST API’s from web services, so I’m hoping someone can help me out here. I need to access a web service (Box.com<http://box.com/><http://Box.com<http://box.com/>>) from my Livecode app using JSON web tokens. The service documentation states that they only s

Re: REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Tom Glod via use-livecode
com<http://Box.com>) from my Livecode > app using JSON web tokens. > The service documentation states that they only support RS256, RS384, and > RS512 for hashing the signature in the token. Unfortunately, in the 139 > options and variations listed by the Livecode CipherNames function

REST API's, JSON Web Tokens & Hash Algorithms

2019-11-12 Thread Bleiler, Timothy via use-livecode
using JSON web tokens. The service documentation states that they only support RS256, RS384, and RS512 for hashing the signature in the token. Unfortunately, in the 139 options and variations listed by the Livecode CipherNames function I don’t see these. Have I missed or misunderstood something

Re: Stop Integer Coercion to Scientific Notation in JSON

2019-09-13 Thread Trevor DeVore via use-livecode
rayToJSON(tValueA) end mouseUp ``` The output is as follows: ``` { "root": { "boolean_2": false, "text": 100, "null_1": "", "boolean_1": true, "number": 100 } } ``` ArrayToJSON won't ever quote

Re: Stop Integer Coercion to Scientific Notation in JSON

2019-09-12 Thread Sannyasin Brahmanathaswami via use-livecode
BR Hello all, There is not a lost of precision in the operations. The problem is just that LCB *displays* the value of large numbers in scientific notation, but if you actually do any calculations with the variables that hold these numbers, the calculations are accurate. In other words the va

Re: Stop Integer Coercion to Scientific Notation in JSON

2019-09-11 Thread panagiotis merakos via use-livecode
variables do hold the full value - it is the emission which is turning them into the scientific notation. (emisson as text in json) Hope this helps. Kind regards, Panos -- On Wed, 11 Sep 2019 at 16:29, Sannyasin Brahmanathaswami via use-livecode < use-livecode@lists.runrev.com> wrote: > One

Re: Stop Integer Coercion to Scientific Notation in JSON

2019-09-11 Thread Sannyasin Brahmanathaswami via use-livecode
op priority. With so many apps now working with the cloud, REST/XML and related proprietary transfers using JSON. It is ever more in important that we can depend of LiveCode for the simple act of keeping a number/integer (any size) intact! At least I think I have a hack: to store time as a strin

Re: Stop Integer Coercion to Scientific Notation in JSON

2019-09-11 Thread panagiotis merakos via use-livecode
Hello Brahmanathaswami, I think this is because of how currently some handlers in lcb work. See bug https://quality.livecode.com/show_bug.cgi?id=18159 (and the related bugs) for more details. This affects other areas, such as how large numbers are shown in the variables pane in the debugger. Ki

Stop Integer Coercion to Scientific Notation in JSON

2019-09-10 Thread Sannyasin Brahmanathaswami via use-livecode
setPref "preferences/global/lastRunDate", (the seconds) # e.g 1568144731 put getPref ("preferences/global/lastRunDate") into tLastRunDate returns {"preferences": {"global": {"lastRunDate

Re: Enhancement: transparently persist/retrieve large amounts of array data as JSON

2019-02-05 Thread Brian Milby via use-livecode
If you want to build from source, you can test it now.  It is in the develop-9.0 branch. Thanks, Brian On Feb 5, 2019, 12:34 AM -0500, Bernard Devlin via use-livecode , wrote: > As far as I can see, providing this enhancement is (in essence) no more > than the addition of one line to Livecode's

Enhancement: transparently persist/retrieve large amounts of array data as JSON

2019-02-04 Thread Bernard Devlin via use-livecode
As far as I can see, providing this enhancement is (in essence) no more than the addition of one line to Livecode's compilation process. Details here: https://quality.livecode.com/show_bug.cgi?id=21821 Seems to me to be a huge gain for virtually no effort. Array data could be stored and indexed

Re: Array editing or Validate JSON string?

2018-11-19 Thread Mark Talluto via use-livecode
I always appreciate error reporting. I ran into the same problem. Sometimes you can see the error easily enough. But, in complex arrays, it is harder to see the error when looking at JSON. For this reason, I find dropping it into a validator to be useful. They can point you in the right

Re: Array editing or Validate JSON string?

2018-11-18 Thread prothero--- via use-livecode
Jacqueline, Thanks. Makes sense. I’ll do that. Bill William Prothero http://es.earthednet.org > On Nov 18, 2018, at 11:40 AM, J. Landman Gay via use-livecode > wrote: > > When I needed to check JSON validation, I put the JSONToArray function inside > a "try" structu

Re: Array editing or Validate JSON string?

2018-11-18 Thread J. Landman Gay via use-livecode
When I needed to check JSON validation, I put the JSONToArray function inside a "try" structure. The catch clause will trigger and tell you there's an error. It isn't too much different than what the editor does but It can give you a clue. -- Jacqueline Landman Gay | jac.

Re: Array editing or Validate JSON string?

2018-11-18 Thread prothero--- via use-livecode
Bob, Tnx for the info. However, isn’t it reasonable that the LC conversion should respond with some indication that it can’t do the JSON to array conversion, rather than throw a script error? Bill William Prothero http://es.earthednet.org > On Nov 18, 2018, at 6:18 AM, bob--- via use-livec

Re: Array editing or Validate JSON string?

2018-11-18 Thread bob--- via use-livecode
Livecode provides a text editor to, well, edit text. It does not understand the syntax/grammar of languages (Livecode, HTML, Javascript, JSON, YML, etc). What you need is an editor that “knows" JSON. Your best bet is to copy the text into Sublime, Visual Studio Code or Atom whi

Re: Array editing or Validate JSON string?

2018-11-17 Thread William Prothero via use-livecode
Folks: I guess I could have been more clear. I am editing the JSON directly in a text field. If I make a mistake, then use JSONToArray, the program just fails silently. What I would like to do is get a dialog that the JSON wasn’t formed correctly. Of course, since I’m using it for my personal

Re: Array editing or Validate JSON string?

2018-11-16 Thread Mark Talluto via use-livecode
Hi Bill, My favorite JSON validator is: https://jsonformatter.curiousconcept.com <https://jsonformatter.curiousconcept.com/> Best regards, Mark Talluto livecloud.io <http://livecloud.io/> nursenotes.net <http://nursenotes.net/> canelasoftware.com <http://www.canelasoftwa

Re: Array editing or Validate JSON string?

2018-11-16 Thread JJS via use-livecode
https://jsonlint.com/ not there are a few forms to write JSON Op 16-11-2018 om 02:55 schreef William Prothero via use-livecode: Thanks, Terry: I’ll give it a whack. Bill On Nov 15, 2018, at 5:19 PM, Terry Judd via use-livecode wrote: Hi Bill - I convert the JSON (jsonImport) to an array

Re: Array editing or Validate JSON string?

2018-11-15 Thread William Prothero via use-livecode
Thanks, Terry: I’ll give it a whack. Bill > On Nov 15, 2018, at 5:19 PM, Terry Judd via use-livecode > wrote: > > Hi Bill - I convert the JSON (jsonImport) to an array then use a treeview > widget to display it. I then use an actionDoubleClick handler in the widget >

Re: Array editing or Validate JSON string?

2018-11-15 Thread Terry Judd via use-livecode
Hi Bill - I convert the JSON (jsonImport) to an array then use a treeview widget to display it. I then use an actionDoubleClick handler in the widget script to grab the appropriate array element and display it in an ask dialog. The value goes back into the array and I export the array back to

Array editing or Validate JSON string?

2018-11-15 Thread William Prothero via use-livecode
Hi, I’m editing a json string (for development uses) and wonder if there is an easy way to validate whether the string is a valid JSON string. Or, perhaps there is an easier way to display and edit a pretty simple array. Suggestions would be helpful. Currently, I convert the array to JSON, put

RE: sending a JSON string

2018-10-18 Thread Douglas Ruisaard via use-livecode
er so much! Now onto the next challenge... "bulk" uploading a whole slew of data point at once. Cheers Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > > Message: 4 > Date: Wed, 17 Oct 2018 09:14:38 -0700 > From: "Douglas Ruisaard" > To: > Subj

RE: sending a JSON string

2018-10-17 Thread Douglas Ruisaard via use-livecode
ecode@lists.runrev.com' > Subject: Re: sending a JSON string > > Thanks very much, Andre! I appreciate the assistance. I am sure the two > "keys" are correct as I use > them in another portion of the application (an ESP8266 module which sends > data to ThingSp

Re: sending a JSON string

2018-10-17 Thread pink via use-livecode
You can also try this: set the httpheaders to "Content-Type: application/x-www-form-urlencoded" delete URL("https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE";) - --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278

Re: sending a JSON string

2018-10-17 Thread Douglas Ruisaard via use-livecode
d, 17 Oct 2018 00:10:05 +0100 > From: Andre Alves Garzia > To: How to use LiveCode > Cc: Douglas Ruisaard > Subject: Re: sending a JSON string > Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ec...@andregarzia.com> > Content-Type: text/plain; charset=utf-8; format=flowed >

Re: sending a JSON string

2018-10-16 Thread Andre Alves Garzia via use-livecode
mp; crafterfld"output" *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output"    tsNetCloseConn pID *end*transferComplete On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote: I'll start by apologizing for my abysm

sending a JSON string

2018-10-16 Thread Douglas Ruisaard via use-livecode
I'll start by apologizing for my abysmal familiarity with HTTP, JSON, and URL's ... I'm hoping someone will have pity and give me a hand! I am trying to send a "command" to a ThingSpeak channel, which is very successfully receiving data from a simple little ESP8266

Re: Unicode Store in JSON

2018-10-16 Thread Sannyasin Brahmanathaswami via use-livecode
Unicode is binary?? > Bob S not unicode per se Dictionary says *Syntax* textEncode(*stringToEncode*, encoding) *Summary* Converts from text to binary data. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscr

Re: Unicode Store in JSON

2018-10-16 Thread Bob Sneidar via use-livecode
Unicode is binary?? Bob S > On Oct 14, 2018, at 17:35 , Sannyasin Brahmanathaswami via use-livecode > wrote: > > On 10/14/18 8:43 AM, J. Landman Gay via use-livecode wrote: >> I'd store the text normally, without alteration, in the JSON. TextEncode >> it when yo

Re: Unicode Store in JSON

2018-10-15 Thread Monte Goulding via use-livecode
> On 16 Oct 2018, at 12:09 am, Sannyasin Brahmanathaswami via use-livecode > wrote: > > A "Related" entry under textDecode and textEncode might help. > > The problem is when you get to a dictionary entry for those, there is no > mention "mergJSON". > > So not matter how well "mergeJSON" is d

Re: Unicode Store in JSON

2018-10-15 Thread Sannyasin Brahmanathaswami via use-livecode
On 10/14/18 5:41 PM, Monte Goulding via use-livecode wrote: > Well mergJSON is documented to return UTF-8 encoded JSON, however, I agree > that JSONImport and JSONExport docs are a little ambiguous and should clarify > that the JSON needs to be textDecoded before calling JSONI

Re: Unicode Store in JSON

2018-10-14 Thread Monte Goulding via use-livecode
(field"output","UTF-8") intotOutput > > will the 2nd param work with or without a hyphen? Yes > > --- > unclarity --simply: > > *Syntax* > > textEncode(*stringToEncode*, encoding) > > *Summary* > > Converts from text to bin

Re: Unicode Store in JSON

2018-10-14 Thread Sannyasin Brahmanathaswami via use-livecode
y: *Syntax* textEncode(*stringToEncode*, encoding) *Summary* Converts from text to binary data. doesn't stipulate an "exception" for "different libraries that treat JSON text encoding differently. mergJSON [snip] " BR On 10/14/18 2:55 PM, Monte Goulding via u

Re: Unicode Store in JSON

2018-10-14 Thread Monte Goulding via use-livecode
> On 15 Oct 2018, at 11:35 am, Sannyasin Brahmanathaswami via use-livecode > wrote: > > Wow, that worked! And I thought that JSON could not be a container for > "binaryData" as described on the dictionary. Could you provide some detail where the docs are misleading.

Re: Unicode Store in JSON

2018-10-14 Thread Sannyasin Brahmanathaswami via use-livecode
On 10/14/18 8:43 AM, J. Landman Gay via use-livecode wrote: > I'd store the text normally, without alteration, in the JSON. TextEncode > it when you send it to the database and textDecode when you retrieve it > from the database. Wow, that worked! And I thought that JSON

Re: Unicode Store in JSON

2018-10-14 Thread J. Landman Gay via use-livecode
I'd store the text normally, without alteration, in the JSON. TextEncode it when you send it to the database and textDecode when you retrieve it from the database. On 10/14/18 9:26 AM, Sannyasin Brahmanathaswami via use-livecode wrote: I need to store unicode in JSON on Mobile; and store

Unicode Store in JSON

2018-10-14 Thread Sannyasin Brahmanathaswami via use-livecode
I need to store unicode in JSON on Mobile; and store that in SQLLite dBase If you do a "direct" transfer *put*(char1to35oftQuote)& "..."intosTruncFirstLine "Yea, jīva is actually Śiva." # putting sTruncFirstLine into an SQLLite column # whe

Re: Livecode Json Arrays Key Sort

2018-03-29 Thread Brian Milby via use-livecode
The fix is probably as easy as exposing the list type to LCS. Mark mentioned that at the last LCG last year. Since the parser already uses the list type and the engine has a list type internally it shouldn’t be that hard. On Thu, Mar 29, 2018 at 5:34 PM Mark Wieder via use-livecode < use-livecode@l

Re: Livecode Json Arrays Key Sort

2018-03-29 Thread Mark Wieder via use-livecode
On 03/29/2018 01:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: put JSONToArray(tJson) into sColArrayA It is my imagination: Or are the keys of {object set} output as hash order (as per dictionary, required sort them first) https://quality.livecode.com/show_bug.cgi?id=19698

Livecode Json Arrays Key Sort

2018-03-29 Thread Sannyasin Brahmanathaswami via use-livecode
put JSONToArray(tJson) into sColArrayA It is my imagination: Or are the keys of {object set} output as hash order (as per dictionary, required sort them first) simply delimited by { 1 3 5 6 7 2 4 } but keys of an array output as numeric [{ 1 2 3 4 ]] get always

Re: post to cgi, JSON in Headers?

2018-02-01 Thread Klaus major-k via use-livecode
Hi Dave, > Am 01.02.2018 um 16:28 schrieb Dave Kilroy via use-livecode > : > > Klaus I wonder if he wants you to let the server know what kind of data > you'll be sending up, it's not uncommon to set the headers this way when > posting data to an API: > > p

Re: post to cgi, JSON in Headers?

2018-02-01 Thread Dave Kilroy via use-livecode
Klaus I wonder if he wants you to let the server know what kind of data you'll be sending up, it's not uncommon to set the headers this way when posting data to an API: put "Content-Type: application/json" into tHeaders set httpHeaders to tHeaders Good luck! Dave N

Re: post to cgi, JSON in Headers?

2018-01-31 Thread Bob Sneidar via use-livecode
cation and > said: > "...and make sure you're posting the HTTP header data (the tokens) as > application/json." > ??? > Now he is not available for the next hours. :-( > > Anyone knows what he is talking about and how I can add this to my scripts? >

post to cgi, JSON in Headers?

2018-01-31 Thread Klaus major-k via use-livecode
application/json." ??? Now he is not available for the next hours. :-( Anyone knows what he is talking about and how I can add this to my scripts? Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ us

Re: JSON import error

2017-11-03 Thread Dave Kilroy via use-livecode
t; >> <https://en.wikipedia.org/wiki/Rubber_duck_debugging> > >> <https://en.wikipedia.org/wiki/Rubber_duck_debugging > >> <https://en.wikipedia.org/wiki/Rubber_duck_debugging>> > > > > Yeah. Story of my life. I've since hit another error in the JSON impor

Re: JSON import error

2017-11-03 Thread Mark Wieder via use-livecode
On 11/03/2017 05:03 AM, Phil Jimmieson via use-livecode wrote: Or when you’re preparing an example stack for the bug report and realise that it’s not a bug, you’ve been doing it wrong... Normally I find that right *after* filing the bug report. -- Mark Wieder ahsoftw...@gmail.com

Re: JSON import error

2017-11-03 Thread Mark Waddingham via use-livecode
On 2017-11-03 13:03, Phil Jimmieson via use-livecode wrote: Or when you’re preparing an example stack for the bug report and realise that it’s not a bug, you’ve been doing it wrong... Recipe stacks for bugs are useful for all kinds of reasons ;) Warmest Regards, Mark. -- Mark Waddingham ~ m.

Re: JSON import error

2017-11-03 Thread Phil Jimmieson via use-livecode
52 AM, Dave Kilroy via use-livecode wrote: >>> https://en.wikipedia.org/wiki/Rubber_duck_debugging >>> <https://en.wikipedia.org/wiki/Rubber_duck_debugging> >> Yeah. Story of my life. I've since hit another error in the JSON >> import but now I'm afrai

Re: JSON import error

2017-11-03 Thread Mark Waddingham via use-livecode
On 2017-11-02 19:57, J. Landman Gay via use-livecode wrote: On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote: https://en.wikipedia.org/wiki/Rubber_duck_debugging <https://en.wikipedia.org/wiki/Rubber_duck_debugging> Yeah. Story of my life. I've since hit another error in the

Re: JSON import error

2017-11-03 Thread David V Glasgow via use-livecode
Story of my life. I've since hit another error in the JSON import but > now I'm afraid to post about it. :) > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _

Re: JSON import error

2017-11-02 Thread J. Landman Gay via use-livecode
Story of my life. I've since hit another error in the JSON import but now I'm afraid to post about it. :) Anything having to do with lists/collections? http://quality.livecode.com/show_bug.cgi?id=19698 I don't think so. The import works with most of the 300 entries in the

Re: JSON import error

2017-11-02 Thread Mark Wieder via use-livecode
On 11/02/2017 11:57 AM, J. Landman Gay via use-livecode wrote: On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote: https://en.wikipedia.org/wiki/Rubber_duck_debugging <https://en.wikipedia.org/wiki/Rubber_duck_debugging> Yeah. Story of my life. I've since hit another error

Re: JSON import error

2017-11-02 Thread J. Landman Gay via use-livecode
On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote: https://en.wikipedia.org/wiki/Rubber_duck_debugging <https://en.wikipedia.org/wiki/Rubber_duck_debugging> Yeah. Story of my life. I've since hit another error in the JSON import but now I'm afraid to post about it. :)

Re: JSON import error

2017-11-02 Thread Dave Kilroy via use-livecode
https://en.wikipedia.org/wiki/Rubber_duck_debugging ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferen

Re: JSON import error

2017-11-02 Thread Monte Goulding via use-livecode
file: will recognise the BOM and decode the text correctly. > On 2 Nov 2017, at 5:36 pm, J. Landman Gay via use-livecode > wrote: > > I sent my message too soon. If I import as "file:" instead of "binfile:" it > mostly works. > > You always figure it out as soon as you post. It's a rule. _

Re: JSON import error

2017-11-01 Thread J. Landman Gay via use-livecode
I sent my message too soon. If I import as "file:" instead of "binfile:" it mostly works. You always figure it out as soon as you post. It's a rule. On 11/2/17 1:02 AM, J. Landman Gay via use-livecode wrote: I am trying to convert some JSON to a LC array. Both JSONIm

JSON import error

2017-11-01 Thread J. Landman Gay via use-livecode
I am trying to convert some JSON to a LC array. Both JSONImport and JSONToArray are failing. JSONToArray gives only a generic "error in function". JSONImport gives this: 863,9,9,runtime 864,9,9,syntax error: 1:1 Unexpected character '˛' 865,9,9,json.lcb 866,9,9,65 897,9,

Re: Getting the JSON library into a standalone

2017-03-17 Thread Jonathan Lynch via use-livecode
I will - thanks. On Fri, Mar 17, 2017 at 3:01 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > On 3/17/17 1:16 PM, Jonathan Lynch via use-livecode wrote: > >> This is in LC 8.1.2. >> >> Can anyone confirm that it is not able to i

Re: Getting the JSON library into a standalone

2017-03-17 Thread J. Landman Gay via use-livecode
On 3/17/17 1:16 PM, Jonathan Lynch via use-livecode wrote: This is in LC 8.1.2. Can anyone confirm that it is not able to include the JSON functions? Are there any simple workarounds? Is there a reason not to use 8.1.3? I remember there was an issue with inclusions at some point, so try the

Getting the JSON library into a standalone

2017-03-17 Thread Jonathan Lynch via use-livecode
Hi, I am trying to convert my app into a standalone, but it depends on the JSONtoArray and ArrayToJSON functions. Even though I am including the JSON library in the standalone inclusions, it is not getting copied over when it makes the standalone. In the IDE, there is an extensions folder, with

Re: JSON library on LC Server

2017-03-09 Thread Devin Asay via use-livecode
On Mar 9, 2017, at 10:31 AM, Devin Asay via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Can anyone tell me how/if one can use the JSON library from LC 8 on LC Server? I’m running Community Server v. 8.1.2 on a Linux server. I tried just calling JsonExport() in the .lc

JSON library on LC Server

2017-03-09 Thread Devin Asay via use-livecode
Can anyone tell me how/if one can use the JSON library from LC 8 on LC Server? I’m running Community Server v. 8.1.2 on a Linux server. I tried just calling JsonExport() in the .lc script, but it errors. Do I have to ‘include’ or ‘start using’ the library somehow? Thanks! Devin Asay Director

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Monte Goulding via use-livecode
ray > > Type function > Syntax JSONToArray(pJSON) > Associationsws.goulding.script-library.mergjson > > Summary > Parse JSON to a LiveCode array > > > > Trevor DeVore via use-livecode wrote >> To my knowledge, the functions are not built into

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
ing.script-library.mergjson Summary Parse JSON to a LiveCode array Trevor DeVore via use-livecode wrote > To my knowledge, the functions are not built into Livecode. You may have a > stack loaded and part of the message path that has those functions there > already. You will need to add th

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
To my knowledge, the functions are not built into Livecode. You may have a stack loaded and part of the message path that has those functions there already. You will need to add the functions to your project in order to parse/encode JSON. Bob > On Jan 30, 2017, at 4:12 PM, pink via

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I'm basing my comments on what I see in the Livecode Dictionary: "The mergJSON external itself can not parse JSON to and from multi-dimensional arrays. This is achieved through JSONToArray and ArrayToJSON script functions provided in this library. The implementations in this library ar

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Trevor DeVore via use-livecode
On Mon, Jan 30, 2017 at 11:53 AM, pink via use-livecode < use-livecode@lists.runrev.com> wrote: > JSON Library is the LCB library with the command JsonImport and JsonExport. > > Those are not the commands that I am using. > > I am using JSONToArray which is part of the me

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSON Library is the LCB library with the command JsonImport and JsonExport. Those are not the commands that I am using. I am using JSONToArray which is part of the mergjson external. I've included it in builds and I am still stuck. - --- Greg (pink) Miller mad, pink and dangerous to

Re: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
The Library needs to be on the inclusion list for it to work in a Standalone. In Standalone prefs click General->Select Inclusions for Standalone (note: I do not bank on the auto-include feature). Then click the “Inclusions” icon and wait just a second as the inclusions render. Look for J

Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
time-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this u

Re: TextDecode JSON array

2017-01-22 Thread J. Landman Gay via use-livecode
On 1/22/17 1:26 AM, Peter TB Brett via use-livecode wrote: On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"

Re: TextDecode JSON array

2017-01-22 Thread Trevor DeVore via use-livecode
erID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} > > > This is valid JSON (and also valid ASCII). In JSON, any character in a > string may be encoded in the form \u where is the 4-digit > hexadecimal representation of a

Re: TextDecode JSON array

2017-01-21 Thread Peter TB Brett via use-livecode
On 22/01/2017 03:22, J. Landman Gay via use-livecode wrote: Here's a test sample of some UTF8 I get back from a server: {"UserID":48,"UserName":"Eduardo Ba\u00f1uls","UserLoginName":"ebanu"} Hi Jacque, This is valid JSON (and also va

  1   2   3   >