You need to sign in to do that
Don't have an account?
Sudip Mondal
JSON Validation
Hello fellow members,
We have a requirement to check if a value entered in a textbox by the user is in valid JSON format. Is there any specific way we can implement this? Looking forward not to use triggers and to complete this using Validation Rules.
Many thanks in advance.
We have a requirement to check if a value entered in a textbox by the user is in valid JSON format. Is there any specific way we can implement this? Looking forward not to use triggers and to complete this using Validation Rules.
Many thanks in advance.
- VisualForce page with Javascript to call a JSON linter / validate with the built in JSON parser
- VisualForce page with Apex controller to call JSON methods to validate
- Trigger on object insert to call Apex JSON methods to validate
You might be able to validate by injecting Javascript via a sidebar hack, but that's going to be going away soon so I wouldn't recommend doing that.