jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Wilkinson <inyab...@gmail.com>
Subject Re: JSON
Date Wed, 25 Mar 2015 14:21:08 GMT
And the relevant jar file for the org.json classes is in your Jmeter lib
directory? Normally json-libMy Jmeter 2.12 includes json-lib-2.4.jdk15.jar
as part of JMeter itself.

On 25 March 2015 at 13:44, Erez Naim <erez@theneura.com> wrote:

> This is what I am importing:
>
> import org.json.JSONArray;
> import javax.json.stream.*;
> import org.json.JSONObject;
>
> -----Original Message-----
> From: Mark Wilkinson [mailto:inyabass@gmail.com]
> Sent: Wednesday, March 25, 2015 3:41 PM
> To: JMeter Users List
> Subject: Re: JSON
>
> Are you doing an
>
> import javax.json.stream.*;
>
> before using the json classes?
>
> Mark W
>
> On 25 March 2015 at 13:29, Erez Naim <erez@theneura.com> wrote:
>
> > Hi all,
> >
> >
> >
> > I am trying to manipulate JSON object in my script using postprocessor
> > Beanshell, as I try to use JSONObject, JSONParser library and
> > JSONArray library I am getting the following error (I have added the
> > relevant jar files into jmeter's lib folder):
> >
> >
> >
> > BeanShell script org.apache.jorphan.util.JMeterException: Error
> > invoking bsh method: eval Sourced file: inline evaluation of: ``import
> > org.json.JSONArray; import org.json.JSONObject; //import
> > org.json.simple Typed variable declaration : Class: JSONParser not
> > found in namespace
> >
> >
> >
> > Any idea how to solve it?
> >
> >
> >
> > Thanks!
> >
> >
> >
> > Erez Naim  |  QA Lead  |   [image: LinkedIn]
> > <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard]
> > <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter]
> > <http://twitter.com/#!/giladmeiri/>
> >
> > [image: cid:image004.png@01D01E1B.5F153500]
> >
> > EL AL 2 Street | Herzliya
> > mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
> >
> >
> >
> > website <http://www.theneura.com/>  |  blog
> > <http://www.startupbitz.com/>  |  twitter
> > <https://twitter.com/intent/user?screen_name=theneura>  |  map
> > <http://goo.gl/maps/ZRkg5>
> >
> >
> >
> >
> >
>
>
>
> --
> Mark Wilkinson
> inyabass@gmail.com 07968 398828
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Mark Wilkinson
inyabass@gmail.com 07968 398828

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message