Json Baseheader
-
The Json display from Udemy does not seem to have a baseheader.
Example:{“__class”:”course”,”id”:”11670″,”title”:”Sell Ebooks on Amazon Kindle and Global Retailers”,”numLectures”:22,
Using __class or course do not seem to work.
What can I do with your plugin to pull this Json feed into my site.
Thanks,
David
-
Thank you for your post.
I’ll check this.Hi David,
thank’s for your post.
JSON of this type can’t be processd by this Version of the JSON Content Importer.
Reason: There was no need for me πIn the next version this will be possible.
I’d like to collect some posts here to put all the remarks into the next version.
Is this ok for you?Best
BernhardYes that would be fine but sounding rude how long do you think it will take for the next version?
The Udemy data I am working with has over 8000 course entries and I really need something like this to import that data so that I do not have to do it by hand.
I am also getting this error when it tries to load my Json info: Warning: Invalid argument supplied for foreach() in /home/frazzin/public_html/wp-content/plugins/json-content-importer/class-json-content-importer.php on line 106
I will be more than will to take a beta version or anything to help.
Thanks
David
Hi David,
the reason for the error is the unsupported matching of this json-structure to the wp-shortcode-syntax.
With solving your issue this will be fixed.Next version: I can do this within the next days.
In return you could help me. I’ll contact you via facebook.
Best
BernhardThanks very much and I will be looking forward to hearing from you soon.
Try https://downloads.wp.xz.cn/plugin/json-content-importer.1.0.3.zip
To display
http://www.reiseliste.de/extra/tmp/1.json
use the following shortcode:
[jsoncontentimporter url=”http://www.reiseliste.de/extra/tmp/1.json”%5D
{title} {__class}
{id} {numLectures}
[/jsoncontentimporter]Works great!!!
Thanks a million.
Thank you too.
Hi,
thanks for the great PlugIn – unfortunately I run into an error when there is no named base element (Version 1.0.5 of your PlugIn) – the JSON I tried is valid:
[jsoncontentimporter url=”http://sampleurl.com/wp-json/posts/144″%5D
{title}
[/jsoncontentimporter]Undefined offset: 1 in /var/www/vhosts/myurl/wp-content/plugins/json-content-importer/class-json-parser.php on line 155 Notice: Undefined offset: 2 in /var/www/vhosts/myurl/wp-content/plugins/json-content-importer/class-json-parser.php on line 156 Notice: Undefined offset: 1 in /var/www/vhosts/myurl/wp-content/plugins/json-content-importer/class-json-parser.php on line 160 Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/vhosts/myurl/wp-content/plugins/json-content-importer/class-json-parser.php on line 244
If you need it – I can send you the URL to the sample JSON in a private mail.
Thanks, Detlef
Hi Detlef,
let me know the JSON: blog @ kux . de
Bernhard
Hi Detlef,
I’ll mail you.
Best
BernhardShould work with version 1.1.1
Hi there. Your plugin has huge potential and is mostly working for me. My valid JSON feed does not have a basenode but still partly works. But in the example below, “{content:html}” does not render. Is there a limit to how deep it can parse? It does not seem to work if I try to parse more than 1 level down.
[jsoncontentimporter url=”http://…” urlgettimeout=”5″ numberofdisplayeditems=”-1″ basenode=””]
{subloop:PUBLICATIONS:1}
{subloop:selected:1}
{subloop:publication1:1}
{content:html}
{/subloop:publication1}
{/subloop:selected}
{/subloop:PUBLICATIONS}{subloop:CONTACTINFO:1}{firstname} {lastname}{/subloop:CONTACTINFO}
{subloop:OVERVIEW:1}
<p>Summary: {profilesummary:html}</p>
<p>Appointments: {appointments}</p>
{/subloop:OVERVIEW}{subloop:PROJECTS:1}
{subloop:project3:1}
<p>{summary}</p>
{/subloop:project3}
{/subloop:PROJECTS}[/jsoncontentimporter]
Hi,
there’s no depth-limit, besides the RAM of the webserver and runtime.
One reason might be the encoding.May I have the JSON? Do you have an URL here or via blog at kux.de
The topic ‘Json Baseheader’ is closed to new replies.