Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shanepeckham authored Mar 29, 2017
1 parent b98396f commit 82489cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ We can generate a json schema online - I have used https://jsonschema.net/#/edit
"type": "object"
}
```
Now comes the tricky bit, we will need to go into the code view to go and formulate the json manually so that we can populate this schema from our Request Body and Detect Language outputs. My code view for this step looks like this:
Now comes the tricky bit, we will need to go into the code view to go and formulate the json manually so that we can populate this schema from our Request Body and Detect Language outputs. My code view for this step looks like this (you might want to copy this if string manipulation makes you go cross-eyed):
```
"Parse_JSON": {
"inputs": {
Expand All @@ -421,7 +421,11 @@ Now comes the tricky bit, we will need to go into the code view to go and formul
},
```

You can now run another test to see if your parse json conforms to the schema. Once it does you are ready to now pass the new json message to the Serverless proxy to pass to the legacy database.

Note, the Logic App designer will state that the json is invalid while the code view will think it is valid, it this happens ensure that you always click save in the code view whenever you make a change! See below:

![alt text](https://github.com/shanepeckham/CADScenario_Personalisation/blob/master/images/parseJson.png)



Expand Down

0 comments on commit 82489cf

Please sign in to comment.