![]() ![]() The first, and more clunky way, is to just write the JSON from scratch. There are two ways to form the JSON object when passing the parameters. There’s no longer a need for custom parsing functions, or complex let statements that parse and instantiate each variable. So, what once was passed as: "id = 32313 Īnd on the receiving end, we parse out each element into a variable and use them from there, using the JSONGetElement function. The new method in 16 is to pass a JSON object, with a series of elements that form the key-value pairs, and parse those elements out of the JSON object in the sub script. This is a nice simple format, but it has some limitations. There are various methods and syntaxes FileMaker developers have been using for passing multiple parameters to and from scripts, but the most common one I’ve come across is key-value pairs in the format “key1 = value1 key2 = value2 ke圓 = value3” etc. ![]() This is made possible by the new JSON functions - specifically, the JSONSetElement function and the JSONGetElement function. With the release of version 16, FileMaker developers finally have the ability to natively pass and parse multiple script parameters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |