similar to: Binary Data over JSON/XML?

Displaying 20 results from an estimated 20000 matches similar to: "Binary Data over JSON/XML?"

2008 Feb 17
3
"URL" model not possible?
Hello there, I just added an URL model to my app (allowing users to basically add urls etc), which works perfectly fine on the console, but the views are not working properly. I always get the following error (e.g. when wanting to create/add a new url): ActionView::TemplateError (undefined method `rewrite'' for #<Url: 0x25a6070>) on line #5 of urls/new.html.erb: 2: 3: <%=
2007 Dec 16
2
restful_authentication: update of users' attributes on every page load upon 'Remember me' being enabled?
Hello there, I just noticed a kinda weird thing: if users log in with the ''Remember Me'' option enabled, their records in the db get updated everytime the user reloads a page, because apparently restful_authentication''s code updates the remember_token_expires_at & remember_token attributes for each page load (not only once on the actual login (from cookie).
2008 Dec 02
2
ActiveResource - xml and json format return different results
Hi, I''m using Rails 2.1.2. and I wanted to switch ActiveResource format to JSON and thought that it will work smoothly, but unfortunately it wasn''t the case. XML and JSON formats generate different objects: XML version #<User:0xb7658440 @prefix_options={}, @attributes={"created_at"=>Mon Nov 28 11...}> JSON version #<User:0xb746af5c @prefix_options={},
2007 Oct 02
0
More JSON and XML feature parity for AR and ActiveSupport (patch review)
I''m really glad the JSON changes got in, many thanks to all involved, committers and contributors alike :). But there''s still one feature that''s missing to achieve feature parity between the JSON and XML encoding/conversion. And that is the abililty to say in your controller: @authors = Author.find(:all) render :json => @authors.to_json(:only => :name)
2010 Apr 05
2
Harmonizing JSON/XML serialization
The way Rails handles root nodes in JSON and XML serialization is inconsistent. This has been discussed before: https://rails.lighthouseapp.com/projects/8994/tickets/2584-232-activeresource-json-doesnt-send-parameters-with-root-node This seems mostly taken care of with ActiveModel::Base.include_root_in_json, especially if/when it ends up in ActiveResource. However, there is also the issue of how
2012 Jul 26
2
Get XML or JSON data from api into data frame
Dear all, I am new to R in general and ways to retrieve XML or JSON data in particular. I have tried to get information through the XML package and various websites without being able to do exactly what I want. I hope someone of you can give me some help. I want to retrieve information about movies from IMDB or rather the unofficial api, www.imdbapi.com. I have a vector with a lot movie-ids
2007 Dec 07
2
[ActiveSupport] Patches needing review: re-organization of #to_query methods, preservation of XML/JSON content-type
Just a quick pointer to some ActiveSupport patches hoping for reviews: Puts Array#to_query and Object#to_query in the right places in ActiveSupport - http://dev.rubyonrails.org/ticket/10395 Preserve user-specified content type for XML and JSON rendering (currently it''s overridden and set to Mime::XML/Mimi::JSON - http://dev.rubyonrails.org/ticket/10388 Oh and a tiny patch for
2007 Oct 04
4
2 more JSON / XML feature parity patches before Rails 2.0
I''d really like to see just 2 more functional changes to the JSON serialization/encoding before we get to Rails 2.0. First, and I think this is really crucial because without it all the efforts to output JSON from ActiveRecord objects would have been half in vain, is to allow us to do this in controllers: @authors = Author.find(:all) render :json => @authors.to_json(:only =>
2009 Apr 29
1
Different behaviour on ActiveResorce with JSON or XML
I''m doing a request from a Rails app to another Rails app with ActiveResource. When the format on ActiveResource is XML: Content.find(:all)[0,2].map(&:attributes) => [ {"updated_at"=>Mon Apr 27 15:04:32 UTC 2009, "url"=>"www.google.com", "id"=>1, "created_at"=>Mon Apr 27 15:04:32 UTC 2009},
2005 Sep 21
2
Result Documents XML or JSON?
My Java servlets can generate both JavaScript objects, like JSON, and XML. I can generate both pretty easily. What''s best practice for AJAX responses? Return scripts to be evaled by the Ajax control, or return XML documents and iterate them using XML DOM? Thanks. -- Alan Gutierrez - alan@engrm.com - http://engrm.com/blogometer/index.html -
2020 Feb 04
0
Re: Does Libvirt's json parser support single quoted string in qmp json string?
On Tue, Feb 04, 2020 at 09:11:27AM +0100, Markus Armbruster wrote: > Eric Blake <eblake@redhat.com> writes: > > > [adding Markus] > > > > On 2/3/20 4:13 AM, Daniel P. Berrangé wrote: > >> On Fri, Jan 31, 2020 at 06:44:42AM -0600, Eric Blake wrote: > >>> On 1/31/20 4:38 AM, Peter Luo wrote: > >>> > >>>> error: internal
2020 Jan 31
0
Re: Does Libvirt's json parser support single quoted string in qmp json string?
On 1/31/20 4:38 AM, Peter Luo wrote: > error: internal error: cannot parse json {"execute": "block-commit", "arguments": { "device": "drive-virtio-disk2", "job-id": "job100",
2015 Mar 05
0
json.c:704 ast_json_vpack: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
05.03.2015 11:29, Dmitry Melekhov ?????: > Hello! > > Just installed asterisk 13.2.0 and see many such messages in log, I > see them in console during calls, really something like this: > > > -- Executing [6166 at kanbaikal:2] Dial("OOH323/kanbaikal-6", > "SIP/6166 at asterisk") in new stack > == Using SIP RTP TOS bits 184 > == Using SIP
2015 Mar 09
0
json.c:704 ast_json_vpack: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
On Thu, Mar 5, 2015 at 2:29 AM, Dmitry Melekhov <dm at belkam.com> wrote: > Hello! > > Just installed asterisk 13.2.0 and see many such messages in log, I see them > in console during calls, really something like this: > > > -- Executing [6166 at kanbaikal:2] Dial("OOH323/kanbaikal-6", > "SIP/6166 at asterisk") in new stack > == Using SIP
2015 Mar 10
0
json.c:704 ast_json_vpack: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
On Tue, Mar 10, 2015 at 5:00 AM, Dmitry Melekhov <dm at belkam.com> wrote: > 05.03.2015 11:42, Dmitry Melekhov ?????: > >> 05.03.2015 11:29, Dmitry Melekhov ?????: >>> >>> Hello! >>> >>> Just installed asterisk 13.2.0 and see many such messages in log, I see >>> them in console during calls, really something like this: >>>
2020 Feb 03
0
Re: Does Libvirt's json parser support single quoted string in qmp json string?
[adding Markus] On 2/3/20 4:13 AM, Daniel P. Berrangé wrote: > On Fri, Jan 31, 2020 at 06:44:42AM -0600, Eric Blake wrote: >> On 1/31/20 4:38 AM, Peter Luo wrote: >> >>> error: internal error: cannot parse json {"execute": "block-commit", "arguments": { "device": "drive-virtio-disk2", "job-id": "job100",
2023 Dec 05
3
[Bug 1726] New: invalid json generated by ipset list -output json
https://bugzilla.netfilter.org/show_bug.cgi?id=1726 Bug ID: 1726 Summary: invalid json generated by ipset list -output json Product: ipset Version: unspecified Hardware: x86_64 OS: Debian GNU/Linux Status: NEW Severity: trivial Priority: P5 Component: default Assignee:
2007 Oct 25
0
ActiveSupport's JSON decoder is incorrect.
http://dev.rubyonrails.org/ticket/9990 and reiterated here: The current ActiveSupport JSON decoder uses YAML.load to parse json documents, and YAML has different escaping rules from JSON. In particular, in JSON, forward-slashes must be escaped (I''m not sure why, it isn''t neccessary for Javascript, but thats the spec.) This presents problems for URLs in ActiveSupport JSON:
2020 Jan 31
1
Re: Does Libvirt's json parser support single quoted string in qmp json string?
Hi Peter Krempa, Thanks for your quick response, yes, I know since libvirt 5.8, the -blockdev is used for disk by default. However we have to maintain the old releases for the production environment for a while, so I still need use the old way to create the disk. >"base" argument must be a string. this means you need double quotes in >JSON ("). You also must
2019 May 16
0
Re: [PATCH] v2v: -o json: add a simple test for it
On Thursday, May 16, 2019 11:08:23 AM CEST Pino Toscano wrote: > Followup of commit f190e08d85556dac293ef15bfeee38e54471570f. > --- > v2v/Makefile.am | 2 ++ > v2v/test-v2v-o-json.sh | 58 ++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 60 insertions(+) > create mode 100755 v2v/test-v2v-o-json.sh > > diff --git a/v2v/Makefile.am b/v2v/Makefile.am