# \[New Free Plugin\] Json Generator

**URL:** <https://forum.bubble.io/t/new-free-plugin-json-generator/24305>\
**Category:** Showcase\
**Created:** [February 11, 2018, 12:31am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305 "2018-02-11T00:31:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [February 11, 2018, 12:31am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/1 "2018-02-11T00:31:41Z")

</div>

Hello,

We just published a plugin ‘[Json Generator](https://bubble.io/plugin/json-generator-1518304508555x976130829359513600)’ as the bubble community may find it useful (especially those working with api stuff).

You can provide the fields in a workflow step ‘Set to’ of a ‘Json’ element on the page. The plugin will automatically generate a JSON string that you can use in your app as the ‘Json element’s output’.

How to use:

1. Install the plugin
2. Place the Json element on the page (you can place as many as u need).
3. Run the workflow step ‘Set to’ and reference the element.
4. This will update the ‘output’ Json of that element for your use
5. That’s it!

Happy Bubbling!

Cheers,  
[The AirDev team](https://airdev.co)

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [February 11, 2018, 12:36am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/2 "2018-02-11T00:36:44Z")

</div>

Here’s the example screenshot for reference

 ![Use%20Json%20output](https://us1.discourse-cdn.com/bubble/original/3X/0/5/05d5e1fd36de70d8aff83dce4ad45c0e74ccaad9.PNG)

 ![Set%20values](https://us1.discourse-cdn.com/bubble/original/3X/b/a/ba85fcdfa2f93ea676d204d01ffe4d21415ba18b.PNG)

---

<div class="post-metadata">

**Author:** ![sridharan.s](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sridharan.s/32/17881_2.png) [@sridharan.s](https://forum.bubble.io/u/sridharan.s)\
**Post date:** [February 11, 2018, 1:26am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/3 "2018-02-11T01:26:04Z")

</div>

Thanks for publishing this @gaurav! Will be useful for me and lots of other people in the community, I’m sure.

---

<div class="post-metadata">

**Author:** ![kramwe](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kramwe/32/10102_2.png) [@kramwe](https://forum.bubble.io/u/kramwe)\
**Post date:** [February 11, 2018, 2:34am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/4 "2018-02-11T02:34:04Z")

</div>

😄

goodbye painful changes…  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/b/3b553c579197c464aff45e697264f99f7374ef5d.jpg)

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [February 11, 2018, 2:53am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/5 "2018-02-11T02:53:57Z")

</div>

Lol 😃

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [February 11, 2018, 4:24am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/6 "2018-02-11T04:24:23Z")

</div>

Just added ability to nest other JSON outputs. Now you can build nested JSON objects 😃

---

<div class="post-metadata">

**Author:** ![8910billiards](https://avatars.discourse-cdn.com/v4/letter/8/87869e/32.png) [@8910billiards](https://forum.bubble.io/u/8910billiards)\
**Post date:** [February 11, 2018, 7:55am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/7 "2018-02-11T07:55:39Z")

</div>

Downloaded the plugin. Thank you.

I added it to a test page to understand how it works. Easy to set up.

My questions is, what are some scenarios that we can use this plugin on our sites?

Scott

---

<div class="post-metadata">

**Author:** ![kramwe](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kramwe/32/10102_2.png) [@kramwe](https://forum.bubble.io/u/kramwe)\
**Post date:** [February 11, 2018, 12:00pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/8 "2018-02-11T12:00:21Z")

</div>

Speaking for us, we have a number of places in app where we’re writing JSON to send to other services.  
For example, @copilot’s sendgrid plugin custom args, events sent to tools like segment or astronomer need to be json, there are many more.

Prior to this plugin, we’ve had to manually type the JSON block carefully into one field like I’ve shown above. It’s a serious pain to write and maintain – it’s easy to drop a " or , and the code breaks; bad things ensue.

Here’s an example for how to use it: 1) create the JSON 2) now you can reference the JSON in other actions.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/1/51d34cfc125d84affc9c6e2b63e0772d6411fb9a.png)

---

<div class="post-metadata">

**Author:** ![eftomi](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@eftomi](https://forum.bubble.io/u/eftomi)\
**Post date:** [February 11, 2018, 2:58pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/9 "2018-02-11T14:58:36Z")

</div>

To convert things to JSON you can also use [JSON tools](https://bubble.io/plugin/jsontools-1512987045178x955858951313817600).

---

<div class="post-metadata">

**Author:** ![alex7](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex7/32/13019_2.png) [@alex7](https://forum.bubble.io/u/alex7)\
**Post date:** [April 13, 2018, 8:26pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/10 "2018-04-13T20:26:34Z")

</div>

Does the plug-in support creating arrays from lists, by any chance? That’d be huge for me.

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [April 13, 2018, 8:38pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/11 "2018-04-13T20:38:53Z")

</div>

Can you elaborate with an example?

---

<div class="post-metadata">

**Author:** ![alex7](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex7/32/13019_2.png) [@alex7](https://forum.bubble.io/u/alex7)\
**Post date:** [April 14, 2018, 1:58pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/12 "2018-04-14T13:58:23Z")

</div>

Sure. I’d like to create scatter plots in my app, based on user data. I think plot.ly will be my best option. I’ve sorted out authentication and I can embed plots in my app using data that I enter in plot.ly itself.

Now I’m trying to figure out how to PUT a JSON object—which in my case is **a table of text strings and numbers**.

The format of the JSON object for plot.ly will be data structured into columns. So, I will have columns of text strings and columns of numbers to send, and the way to do that is to use JSON arrays.

How might I use your plug-in to do that?

Or any other suggestions?

---

<div class="post-metadata">

**Author:** ![bhage](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bhage](https://forum.bubble.io/u/bhage)\
**Post date:** [November 18, 2018, 11:02pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/13 "2018-11-18T23:02:53Z")

</div>

Is there a way to capture an array of data from referenced things in this plugin in? I am looking for an output like this…

{  
“Thing A Field 1” : “Thing A Field 1 Value”,  
“Thing A Field 2” : “Thing A Field 2 Value”,  
“Thing A Field 3 (List of Thing Bs)”:[{“Thing B1 Field 1”:“Thing B1 Field 1 Value”, “Thing B1 Field 2”:“Thing B1 Field 2 Value”,“Thing B1 Field 3 (List of Thing Cs)”:[{…}]}, {“Thing B2 Field 1”:“Thing B2 Field 1 Value”, “Thing B2 Field 2”:“Thing B2 Field 2 Value”,“Thing B2 Field 3 (List of Thing Cs)”:[{…}]}]  
}

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [November 19, 2018, 10:22am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/14 "2018-11-19T10:22:25Z")

</div>

The generator allows you to provide other Json ojects as input so you can generate nested Jsons. Regarding arrays, either:  
1: Env variable plugin: you can write simple code to construct ur json and output it to an env variable.  
2. There’s something I’m planning to publish soon which should likely make this extremely easy. So you could wait for it (maybe a week or so)

---

<div class="post-metadata">

**Author:** ![bhage](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bhage](https://forum.bubble.io/u/bhage)\
**Post date:** [November 19, 2018, 1:55pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/15 "2018-11-19T13:55:40Z")

</div>

thank you @gaurav I will loo at this. This could work. And yes, i would be very interested in having a JSON plug in that could easily compile all data and referenced data of a thing and generate a JSON. I cannot imagine I am the first person trying to do this. Thanks!!

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [November 19, 2018, 6:03pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/16 "2018-11-19T18:03:18Z")

</div>

Ofcourse. Although I think this would just be a small use case of the plugin among many other things 😃

---

<div class="post-metadata">

**Author:** ![destryhunt.dh](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@destryhunt.dh](https://forum.bubble.io/u/destryhunt.dh)\
**Post date:** [December 8, 2018, 4:20am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/17 "2018-12-08T04:20:02Z")

</div>

You are correct. You are not the only one interested in such additional functionality in this plugin. I am patiently awaiting it as well 🙂

---

<div class="post-metadata">

**Author:** ![eddy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eddy/32/89468_2.png) [@eddy](https://forum.bubble.io/u/eddy)\
**Post date:** [December 20, 2018, 10:10am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/18 "2018-12-20T10:10:57Z")

</div>

Thanks for making this plugin! Can now easily send emails 😃

One question: will it be possible to use this is a API Workflow? Or is this on the planning?

Cheers!

---

<div class="post-metadata">

**Author:** ![gaurav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gaurav/32/6666_2.png) [@gaurav](https://forum.bubble.io/u/gaurav)\
**Post date:** [December 27, 2018, 6:53pm UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/19 "2018-12-27T18:53:24Z")

</div>

This should do the job 😃

> [@\[New Plugin\] Bdk Utilities](http://forum.bubble.io/t/new-plugin-bdk-utilities/44986/13):
>
> [Plugin Update] 28-Dec-2018 Transform list is now also available server side so you can use in API workflows If-then-value is now also available server side so you can use in API workflows If-then-value (both client and server side) now allows you to output two values for each condition Text list is now also available server side so you can use in API workflows Text list now supports adding additional 6 dynamic text values in addition to split strings by separator Feel free to check out the [d…](https://bdkdemos.bubbleapps.io/bdk_utilities)

---

<div class="post-metadata">

**Author:** ![eddy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eddy/32/89468_2.png) [@eddy](https://forum.bubble.io/u/eddy)\
**Post date:** [December 28, 2018, 9:20am UTC](https://forum.bubble.io/t/new-free-plugin-json-generator/24305/20 "2018-12-28T09:20:46Z")

</div>

Thanks, but how?

[Next page](https://forum.bubble.io/t/new-free-plugin-json-generator/24305.md?page=2)
