Jump to content
We've recently updated our Privacy Statement, available here ×

zellers

Members
  • Posts

    27
  • Joined

  • Last visited

Community Answers

  1. zellers's post in License question on JRE shipped with Jasper Studio was marked as the answer   
    As far as I can see from the release notes Jaspersoft Studio version 6.15.0 (2020-10-07) onwards ships with AdoptOpenJDK JRE.
     
    https://sourceforge.net/projects/jasperstudio/files/JaspersoftStudio-6.15.0/README.txt/download
  2. zellers's post in Retrieve single field from json string field was marked as the answer   
    Here is some red hot garbage that might do the trick:
    $V{Variable_1}.substring($V{Variable_1}.indexOf(""vin":") + new String(""vin":").length() + 1).substring(0,$V{Variable_1}.substring($V{Variable_1}.indexOf(""vin":") + new String(""vin":").length() + 1).indexOf("",""))[/code]This should return the value for "vin" for data stored in $V{Variable_1}.
     
    Yes. I know. This is disgusting. ;-)
     
    Update 2022: I'm stupid and this is the proper way to do it:
    new org.json.JSONObject($V{JSON}).get("vin").toString()[/code] 
×
×
  • Create New...