Le 11/04/2013 00:26, Daniel Pitts a écrit :
Well, I'd be inclined to use the library written by the same people who
maintain the spec: http://www.json.org/java/index.html
If I'm not mistaken the shall be used for Good, not Evil clause is a
field of use restriction, that's not an open source
Hi,
Is it possible to build a parser to create and verify CLI script?
For example,
config command argument
set option value
set option value
unset option
config command2 argument
set
we ran into a problem with single tickmarks in Struts-user with JSON parse
method..to wit;
var json_parse = (function () {
use strict;
// This is a function that can parse a JSON text, producing a JavaScript
// data structure. It is a simple, recursive descent parser. It does not use
//
On Wed, Apr 10, 2013 at 8:41 PM, Maurizio Cucchiara
mcucchi...@apache.org wrote:
There are a lot of reasons which let me think that having inside the
StringEscapeUtils class is a legitimate idea:
1. take a look at SEU's methods [2]
2. adding a new dependency, just for json escaping, seems
Hi Christian,
according with json spec [1], you should also escape solidus char
(slash for friends :) ) (even if there are many other libraries which
ignore it).
Anyway, have you already taken a look at LANG-797 [2]
PS: This discussion should be moved to the Dev List.
[1] http://goo.gl/EXRqX
On Thu, Apr 11, 2013 at 12:56 PM, Maurizio Cucchiara
mcucchi...@apache.org wrote:
Hi Christian,
according with json spec [1], you should also escape solidus char
(slash for friends :) )
thanks for avoiding me look dumb :-)
Anyway, my lib is mainly written for my own use. It seems I have never
Anyway, my lib is mainly written for my own use. It seems I have never
sent a slash with json, so it didn't pop up.
Many javascript libraries work smoothly with slashes.
That said I will move on
to escapeJavaScript now, which I actually missed.
you mean escapeEcmaScript? if yes, beware that
On Thu, Apr 11, 2013 at 4:54 PM, Maurizio Cucchiara
mcucchi...@apache.org wrote:
Anyway, my lib is mainly written for my own use. It seems I have never
sent a slash with json, so it didn't pop up.
Many javascript libraries work smoothly with slashes.
I hear you. Anyway better stick closely to
Thanks for your help!
On Tue, Apr 2, 2013 at 6:05 PM, Mladen Turk mt...@apache.org wrote:
On 04/01/2013 01:49 PM, Olivier Lemasle wrote:
Hi,
I'm using Apache Commons Daemon and jsvc to run my Java program as a
daemon
on GNU/Linux, using Daemon interface.
I'd like to have two stop