Re: JSON Data in User Provided Service Credential

Matt McNeeney

Hi Jon,

The latest version of Apps Manager does support configuring complex
configuration parameters *as long as service brokers offer a JSON Schema
defining the configuration parameters they can accept*. For user-provided
services, since no schemas can be defined, this is not supported.

If Apps Manager is able to, it will automatically generate a form in the UI
allowing configuration parameters to be set (see screenshot below). Hope
that helps!

[image: config params.png]

Best wishes,

On Tue, Oct 17, 2017 at 4:33 PM Jon Martin <martindesignonline(a)>

Yes, this works as well. However, my question isn't so much about using
escaped vs. non-escaped JSON in a file.

I'm really wondering if it's an anti-pattern to put a JSON string in the
value of a service credential.

It appears the credentials property in the Java Client allows an Object:

However, as mentioned the Cloud Foundry (PCF) app manager won't allow the
usage of a JSON string when creating a user provided service instance.

The CF CLI does allow it.

I just want to make sure that if we use a JSON string as a credential
value that it won't brake down the road.

Join to automatically receive all group messages.