I have some structured json logs that indicate some validation errors, and depending on the error, a different property is set with the value that caused the error. eg:
{ "validationError": { "property" : { "title" : "" }, "errorType" : "Empty" } }
{ "validationError": { "property" : { "category" : [] }, "errorType" : "Empty" } }
{ "validationError": { "property" : { "category" : [ { "categoryId" : 12345 } ] }, "errorType" : "Invalid" } }
{ "validationError": { "property" : { "thing" : { "thingId" : 9999 } }, "errorType" : "Disallowed" } }
I would like to be able to retrieve the property name and its value: eg
property | value | type
---------+-------+-----------
title | | Empty
category | | Empty
category | 12345 | Invalid
thing | 9999 | Disallowed
... View more