Sign in Register
Our Umbraco
  • Forum
  • Packages
  • Documentation
  • Community
  • Discord
  • Download
  • Sign in
  • Our Umbraco
  • Search
  • json
  • Deserialize json
    Forum / Deserialize json
    Created: November 02, 2016 - Last update: November 02, 2016
    Hi Is it possible to deserialize Umbraco JSON into an Object. I would like to deserialize the Json from the PreviousXML table and get the sections from it. Thanks Jon
  • file json
    Forum / file json
    Created: October 07, 2016 - Last update: October 10, 2016
    Hallo, i need to use some json file to load combobox, I wrote the code in my template. I have to load from a file json like the following: { "REGIONCODE": [ {"value": "050", "text": "REG1"} , {"value": "028", "text": "REG2"} , {"value": "028", "text": "REG3"} ] } how i can use them? i…
  • JSON support
    Created: October 06, 2015 - Last update: October 06, 2015
    I can't even begin to describe how much it would rock if CMSImport supported JSON data. With so many online services exposing JSON data we would be able to import content, images and products from exiting platforms like Shopify, Pinterest, Wordpress, Contentful and many others. The web is running J…
  • JSON API
    Forum / JSON API
    Created: November 12, 2010 - Last update: September 28, 2011
    Hey guys, I don't know if it exists already, I'm still an Umbraco newbi! Well, I think it would be cool if Umbraco has a little JSON server built in, and maybe a jQuery framework to talk to it. Reasoning being endless scrolling! And other cool features, a CMS I have seen strongly integrate…
  • Base with Json
    Forum / Base with Json
    Created: October 29, 2010 - Last update: December 22, 2010
    after watching the base movies (which opened my eyes on the posibilities with base) I noticed Per saying you could use it even with Json instead of xml, I could not find that many info on it though. so I started fearing he was talking about just outputting a string of json content, and using the Eva…
  • Node to Json
    Forum / Node to Json
    Created: September 25, 2018 - Last update: January 24, 2019
    Hey, Anyone that can point me in a direction if I want to pull data from children nodes and convert each node data to Json. The nodes has different properties. Hey Jan :) I did write something, but figured it out before you saw the message ! hehe I think I almost have it. Right now I have this…
  • Read-only Json Property
    Backoffice extensions / Packages / Our
    Created: July 15, 2016 - Last update: December 14, 2023
    An editor for storing read-only json values. Like the Label, just with JSON, and a possibility to display the value.
  • 'Post as JSON' workflow
    Forum / 'Post as JSON' workflow
    Created: December 07, 2016 - Last update: April 13, 2017
    Hi all - I must be missing something, but there is no 'post as JSON' workflow OOTB? XML is being phased out for many 3rd party provides in favour of JSON, and nearly everything in Umbraco is JSON, so I'm surely missing something?Hi Karl Just found this. Totally agree. I submitted the same q 30 days…
  • Rendering json as html
    Forum / Rendering json as html
    Created: September 04, 2015 - Last update: September 05, 2015
    Seing as json seems to be the data format of choice these days :) i guess it should be very simple to render json to html in razor... I just cant seem to find a way to do it. Say i have a simple chunk of json like this: [{ "skole":"skole1", "link":"link1", }, …
  • list nodes as json with parameters
    Forum / list nodes as json with parameters
    Created: December 11, 2014 - Last update: December 11, 2014
    I need some json for a typeahead feature, and im a bit stucking in some nested listing of parameters. I need json of this structure: {"items":[ { "name":"Organisationen", "url":"/om-uch/organisationen/", "value":"Organisationen", "tokens": [ "i", "need", "help" ] …
  • nuPickers Json Dropdown Picker
    Created: June 12, 2019 - Last update: October 28, 2019
    Can someone please explain some properties of Json Dropdown Picker little more? i didn't find info in documentation __________________ Property: URL Description: URL to the source JSON, can use the token @contextId anywhere in the url Question: This is url for the JSON file, i know, But what is "@…
  • Node 2 JSON
    Website utilities / Packages / Our
    Created: June 15, 2012 - Last update: December 14, 2023
    An alt template to render node(s) as JSON objects. This packgade contains a Template and Razor MacroScript, so you can modify everthing yourself directly in umbraco. No visual studio needed. Features included: Get JSON for any node by adding /node2json at the end the url. Return JSON by node…
  • JSON "/base" questions
    Forum / JSON "/base" questions
    Created: December 06, 2010 - Last update: December 06, 2010
    Howdy, I have read into this a little but I just wanted to know if anyone has actually done this! Basically I would like to have an endless scrolling effect on the Runway Blog, I would like to do this by getting the relevant post information from JSON. Then injecting it into the HTML using MooTools…
  • Storing JSON data in Umbraco
    Forum / Storing JSON data in Umbraco
    Created: July 29, 2015 - Last update: January 26, 2017
    Hi all, I am trying to store the following JSON string in Umbraco: [{"Code":2003734,"Date":"31/07/2015","Time":"08:15:00","Extras":[]}] However, when I view this in the back office, it is coming up with: [object Object] Before I have tried taking out the outer [] before storing the JSON…
  • Publishing content to a JSON file
    Forum / Publishing content to a JSON file
    Created: April 24, 2018 - Last update: April 30, 2018
    We have a requirement that when our site is published, the client wishes to have certain nodes published to a JSON file so that their app that compliments the website can read the data. The nodes in question are simple ones (document with several children) To create the data in a JSON format, how…
  • Umbraco IPublishedContent to json
    Forum / Umbraco IPublishedContent to json
    Created: November 22, 2018 - Last update: November 26, 2018
    Hi, I am trying to return `IEnumerable ` from controller with ` return Json(allOffers, JsonRequestBehavior.AllowGet);` But it seems that Umbraco's IPublishedContent can not be serialized to json. I got error `A circular reference was detected while serializing an object of type 'Umbraco.Web.Models…
  • IPublishedContent into json without mapping
    Forum / IPublishedContent into json without mapping
    Created: April 17, 2018 - Last update: April 18, 2018
    Hi all, Is there a friendly way to serialize an IPublishedContent node to a Json format, without having to map into a model object? I believe that exists a circular reference issue like is described at https://gist.github.com/EdCharbeneau/702a4c2d702d30f371bd At this time, shouldn't be a very a…
  • Cannot deserialize JSON object
    Forum / Cannot deserialize JSON object
    Created: June 15, 2013 - Last update: June 15, 2013
    Hi I have written a usercontrol to retrieve tweets using the Twitter API 1.1. The user control then uses the NewtonSoft DLL to deserialize the JSON data into a list which it then uses to populate a repeater. This all works fine locally, however when I upload the user control to the site, create an U…
  • Output node data as json
    Forum / Output node data as json
    Created: September 30, 2016 - Last update: September 30, 2016
    Hi I remember there was a package called Node2Json I used it on an old project and it got quite sluggish around 2-3 seconds per request. I was just wondering if anyone else was outputting decent volumes of node data to JSON and what people were doing? We have about 500 nodes. Cheers
  • UmbracoApiController - output as XML (not JSON)
    Forum / UmbracoApiController - output as XML (not JSON)
    Created: July 03, 2016 - Last update: July 04, 2016
    Hi, I have an UmbracoApiController with a method that returns a list of products. public class productsApiController : UmbracoApiController { [System.Web.Http.HttpGet] public IEnumerable getProducts() { List result = new List(); //get produ…
  • Convert XML to JSON in Umbraco?
    Forum / Convert XML to JSON in Umbraco?
    Created: March 09, 2010 - Last update: July 06, 2011
    Working on some Ajax goodness, currently I'm returning the HTML for the content of a panel, I'd like to return just JSON though. Any nice methods built into Umbraco for converting XML to JSON? I know there is XML2JSON XSL which might do the job and there are a number of .net converters too. Before I…
  • Get JSON output by UmbracoApiController
    Forum / Get JSON output by UmbracoApiController
    Created: August 15, 2013 - Last update: November 16, 2016
    As title , is any way can do it ? Hey gwweee, I'm trying to do the same thing with but to render a list of children under a specific node which will show only a single property value in the JSON. Can't seems to figure out how this is done with the UmbracoApiController. Any help will be muc…
  • Macro - JSON property editor
    Forum / Macro - JSON property editor
    Created: January 13, 2015 - Last update: January 13, 2015
    Hello, i need to create macro with property editor, which stores JSON. I added property editor: Textarea, but it encodes JSON (it is with whitespaces and html entity chars) like that in DB (jsut first lines): {\n\t"type": "serial",\n\t"pathToImages&qu…
  • ApiController Return Json
    Forum / ApiController Return Json
    Created: September 16, 2013 - Last update: November 11, 2014
    Hi Guys, I've got a simple api controller like so: public class MailingListApiController : UmbracoApiController { public string GetAllRecipients() { return Json.Encode(new string[] { "Table", "Chair", "Desk", "Computer", "Beer fridge" }); } }       in my app_start folder I…
  • JSON nodes are not passing on validator?
    Forum / JSON nodes are not passing on validator?
    Created: September 11, 2013 - Last update: September 30, 2013
    Im using JSON node like ##, and the validators which im checking out are, http://jsonformatter.curiousconcept.com and http://jsonlint.com . when i paste the node in url path its giving me the results as it is mentioned in the backend. but when i provide this in validator, i have caught up with these…
  • get data with json in template
    Forum / get data with json in template
    Created: November 03, 2011 - Last update: November 03, 2011
    Hi. I have the following code, for passing a parameter to a web method, and retrieving a the result in jquery ajax: <script type="text/javascript"> $(document).ready(function () { $('#<%=btnSignup.ClientID %>').click(function () { var dataString = JS…
  • Returning Json content
    Created: March 17, 2012 - Last update: March 18, 2012
    I was experimenting with Jupiter and wanted to return content as Json. This straight forward approach works out very well: Create another template. Call it Json. Allow it to be used for a particular document type. Add the following code in the template: Json.Write(new { Name= DynamicMode…
  • JSON data e template
    Forum / JSON data e template
    Created: April 28, 2012 - Last update: April 28, 2012
    Hi, I wish to return data from database or a class and present to page via JSON or webservice. So, I create a class and a razor script with JSON.write to output data and put a macro into a template: <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="t…
  • UmbraFile property not in json
    Forum / UmbraFile property not in json
    Created: June 24, 2018 - Last update: June 24, 2018
    Hi, My project using 7.5.13. I am using media services to save a image file. The value stored in [cmsPropertyData].[dataNtext ] is a simple path string. However, when I am using backoffice interface the field value is json {src: 'path', crops: []} This cause the imagePath value return in differen…
  • Sample Prevalue json file
    Forum / Sample Prevalue json file
    Created: October 12, 2015 - Last update: October 12, 2015
    I am getting an error when trying to create any Prevalue source using Umbraco Forms 4.1.4 with Umbraco 7.3 or 7.28. I have opened an issue already but just need a sample of the json file that is created when you create a File type PreValue source? Is there anyone out there in Umbracoland that can he…
  • Invalid JSON primitive: test
    Created: April 16, 2012 - Last update: April 23, 2012
    Please check the following steps 1: steps 2: Step3 (error!): Step 4 (more detail DBImagesAdmin1): Step 5 (more detail DBImagesAdmin1):     I gues this is the solution: http://encosia.com/asmx-scriptservice-mistake-invalid-json-primitive/but don't know how to solve…
  • Umbraco Base Json Param
    Forum / Umbraco Base Json Param
    Created: April 11, 2012 - Last update: April 12, 2012
    Hi ,  i have next method :   public static bool MyMethod(string inputString) I'm trying to call this function with Ajax Jquery    jQuery.ajax({               type: "POST",               url: "/base/myAlia…
  • InvokeXSLT using json dataType
    Created: February 23, 2012 - Last update: February 24, 2012
    Hello fellow Umbracians, I am trying to use the TeaCommerce.invokeXSLT JavaScript API method to get back some json data from a parent node using xslt. The json that my xslt file returns looks correct when I call the base URL directly. However, when setting the dataType to 'json' it still seems to be…
  • Getting a node/document as JSON
    Forum / Getting a node/document as JSON
    Created: July 26, 2012 - Last update: July 26, 2012
    Hi all, First off: I am aware of the awesome Node 2 JSON package ;-) I'm trying to get my head around getting a node or document by it's id with all of it's properties as JSON from either /base or a generic handler. So far, I have managed to output a valid (at least according to JSONLint.com) JSON f…
  • Matching JSON in Search
    Created: August 03, 2015 - Last update: August 03, 2015
    Hi Guys, I need some help regarding ezSearch querying. I am trying to search not only be text but even by category. In my website I have categories, where I am searching for suppliers which falls under that category. Now, I am using nuPickers to create a relationship between supplier and category…
  • DynamicNode or iPublishedContent as JSON
    Forum / DynamicNode or iPublishedContent as JSON
    Created: August 03, 2015 - Last update: August 05, 2015
    Hey guys, I'm writing a webAPI in which I would like to return page data (all of its properties and it's values) as a JSON string. I Just keep getting back empty. Anybody have any idea how to do this? using System; using System.Collections.Generic; using System.Linq; using System.W…
  • Returning JSON instead of IHtmlString?
    Created: March 25, 2019 - Last update: March 27, 2019
    Hi there :) I really like the look of this package, but am having an issue getting the icons to render correctly. I'm using v1.6.0 of Iconic with Font Awesome Pro 5; I've set it up as per Chris Robinson's excellent guide [here][1] The Icons are displaying in the backend for selection as expected:…
  • appsettings.{Environment.MachineName}.json
    Forum / appsettings.{Environment.MachineName}.json
    Created: May 01, 2023 - Last update: May 04, 2023
    Does anyone know how to get this working in umbraco? I found some generic .net core instructions but not for Umbraco9+ I want appsettings.my-machine-name.json just for me so can have custom path & connection strings that differ from the other devs in my team. I found this: https://andrewlock.net/h…
  • Posting JSON to an API Controller
    Forum / Posting JSON to an API Controller
    Created: September 22, 2017 - Last update: October 06, 2017
    Hi I've seen numerous topics about people struggling to post an object to a controller, but none of them have really helped. I've got a JSON object which has two arrays, one isn't populated so I expect it to be null (which it is): "{"locationTypes":["Location Type"],"countries":[]}" I'm usin…
  • Serializing Umbraco.Content(id) to JSON
    Forum / Serializing Umbraco.Content(id) to JSON
    Created: September 12, 2019 - Last update: March 26, 2021
    Hello , I'm New to Umbraco and I want to create Web Api. So I need help how to serialize IPublishedContent in JSON. BINGO! I thought I'd tried that earlier but obviously not well enough, lol That outputs perfectly now. Thanks very much :) So for anyone else in this predicament, the final code wa…
  • Reading json using xslt
    Forum / Reading json using xslt
    Created: August 19, 2013 - Last update: December 11, 2014
    Hi I need to read json data using xslt the json file look like this: {"title":"Hebcal August 2013", "link":"http:\/\/www.hebcal.com\/hebcal\/?v=1;year=2013;month=8;d=on;c=off", "date":"2013-08-19T14:25:01-00:00", "items":[ {"title":"25th of Av, 5773", "category":"hebdate", "date":"2013-08-01",…
  • JSON Serializing Library.Search results
    Forum / JSON Serializing Library.Search results
    Created: August 10, 2012 - Last update: August 13, 2012
    Hey! I really like the new Library.Search() functionality as it returns a DynamicNodeList. My problem is that I can't seem to serialize the result as JSON efficiently. The way I got it to work was to loop through the results and assign the data I wanted to a new List<dynamic> and serializ…
  • Node Content to JSON Object
    Created: April 18, 2012 - Last update: May 10, 2012
    I built a controller that takes an object requesting which an ID along with an array of field id's.  The controller then grabs the content for that ID, fields content, and returns template syntax (jquery tmpl) which is used to render the JSON object to HTML.  The controller then serializes…
  • Invalid JSON primitive: Umbraco.Web.Models.RelatedLinks.
    Forum / Invalid JSON primitive: Umbraco.Web.Models.RelatedLinks.
    Created: June 22, 2018 - Last update: June 22, 2018
    I have upgraded from 7.5.9 to 7.6.5. In one of my partials, I have this code that worked in 7.5.9 is now giving me this error in 7.6.5. Invalid JSON primitive: Umbraco.Web.Models.RelatedLinks at line **var links = Json.Decode(linksString);** @{ var linksString = Model.L…
  • nuPicker JSON on view
    Created: May 18, 2018 - Last update: July 03, 2018
    nuPicker JSON, I success get the data and I can see data in backofice but I have a problem. I want to use nuPicker dropdown (or values) in Razor view but I have a problem (couldn't appear). So my idea is because I will use this as a composition to pick a value from that and save that value (may be…
  • Return Order Details as json
    Created: October 29, 2014 - Last update: October 31, 2014
    Hi.. How can I return order details as json in via the API? E.g. I can do this to return json about an order using Newtonsoft.Json: public string GetOrderDetails(int orderId) { var order = PurchaseOrder.All() .Where(x => x.OrderStatus.OrderStatusId != 1 && x.OrderId == orderId…
  • Forms and .json files in S3
    Forum / Forms and .json files in S3
    Created: August 08, 2017 - Last update: September 20, 2017
    Hi all, We have a requirement to run Umbraco in an Elastic Beanstalk load-balanced environment, which I believe presents some difficulties for Forms due to to the files stored in `/App_Data/UmbracoForms/Data`. We use the NuGet package `Umbraco.Storage.S3` to offload media to S3, and I'm wondering…
  • Macro parameter Json to model
    Forum / Macro parameter Json to model
    Created: January 26, 2017 - Last update: January 27, 2017
    Hello, I've got this piece of code @{ var multiUrlPicker = Model.MacroParameters["linkPicker"]; @multiUrlPicker } The ouput of that is ![enter image description here][1] [1]: /media/upload/df4de91f-6357-4c87-82f9-20b67809869f/2017-01-26_1516.png How can I get js…
  • Invalid JSON primitive
    Forum / Invalid JSON primitive
    Created: April 14, 2011 - Last update: May 24, 2011
    I'm helping a client with this problem. They have embedded several YouTube videos, but one of them is now causing an Invalid JSON primitive error. Stack trace as follows: [ArgumentException: Invalid JSON primitive: .]   System.Web.Script.Serialization.JavaScriptObjectDeserializer.Deserial…
  • Configuration AllowedUploadFiles and ImageFileTypes with json
    Forum / Configuration AllowedUploadFiles and ImageFileTypes with json
    Created: January 20, 2022 - Last update: May 16, 2023
    I use Umbraco 9.2 and configure Umbraco using appsettings.json. I would like to limit the uploading of images and file types. I have followed the instructions(image) on [this page][1], but it shows me a schema mism. The logic is not applied either. I can still upload other images and files. Does an…
  • Grid JSON question
    Forum / Grid JSON question
    Created: December 18, 2015 - Last update: December 20, 2015
    We have an Umbraco site that was created years ago, v4.x era. It's a beast (~4000 nodes). We're now on 7.3.1, having updated it over time to try to keep current. As you might guess by the age of the site, it's set up for WebForms. I'm in the process of rewriting 100 usercontrols and XSLT macros int…
  • Output Nodes in Json format
    Forum / Output Nodes in Json format
    Created: April 10, 2014 - Last update: April 21, 2014
    Hello, I have been given the task to Umbraco-fy a page which is basically static in nature and has a javascript quotes process which uses hard coded values in a json array:       var fitted = {        3sqm: {      &…
  • Json Dropdown Picker with UmbracoAuthorizedApiController
    Created: May 17, 2017 - Last update: May 17, 2017
    I have created an UmbracoAuthorisedApiController with a method to return the required Json. If I call it directly in a browser, then I get the data as expected. [{ "itemValue": "1", "itemText": "Std Post" }, { "itemValue": "2", "itemText": "Std Post (By Courier)" …
  • Convert Content JSON to a web page
    Forum / Convert Content JSON to a web page
    Created: October 31, 2016 - Last update: October 31, 2016
    Hi, Within the CMS there is a Rollback feature that allows you to see the different versions. This only shows the content as JSON. Is there a way to convert this JSON into a viewable page similar to that of the Preview page using C#? Thanks Jon
  • ezSearch getting JSON result in previewFields
    Created: June 11, 2015 - Last update: June 11, 2015
    hi, My search works fine but previewField showing JSON Data . How to solve this ![enter image description here][1]i [1]: /media/upload/a7cce787-d726-4505-82cc-f5b94c4cb358/SearchEz.PNGHi Prasad, Looks like you are searching in the field, which contain json value. You have to remove json symbols…
  • json error in IE 8 and below
    Created: October 31, 2011 - Last update: October 31, 2011
    Editing a blog page throws a "JSON is undefined" error in IE 8 and below which causes saving the blog post to fail. Is there any quick fix to this.What was the issue?  Ignore me.  Just googled and found JSON is unavailable in IE 7.Sorry it's not IE 8 it's only IE 7. (can't edit the post)
  • JSON from a selection RAZOR syntax
    Forum / JSON from a selection RAZOR syntax
    Created: February 06, 2015 - Last update: February 06, 2015
    Hello. Is there an easy way to get json from a selection. At the moment I have a string builder that builds the json using a foreach loop. I'm after something like this: var selection = CurrentPage.Site().Children("ShowcaseItem").Where("Visible"); var json = Json.Encode(selection); Plea…
  • posting JSON object to a Base method
    Forum / posting JSON object to a Base method
    Created: June 11, 2011 - Last update: June 14, 2011
    Hello all,   Is there a way to post a json object to a Base method? I have no problem passing simple strings to the method http://our.umbraco.org/wiki/reference/umbraco-base/programming-a-class-for-the-base-system/umbracobase-methods-also-take-parameters but is it possible to pass a json object…
  • Api Controller return JSON results
    Forum / Api Controller return JSON results
    Created: December 07, 2017 - Last update: December 07, 2017
    I have my Api controller working and returning a string array: [Route("api/[controller]")] public class EventsController : UmbracoApiController { [HttpGet] public IEnumerable EventsForDate(DateTime date) { return new[] { "Cuthbert", "Dribble", "Grub",…
  • Using JSON BLOB in string property
    Created: November 17, 2017 - Last update: November 20, 2017
    I'm using UI-O-Matic and I would like to save json in one of my custom table properties. I created a Custom Property View: And in my controller, I want $sco…
  • Json converter overrides in the Global.asax’s
    Forum / Json converter overrides in the Global.asax’s
    Created: July 01, 2016 - Last update: July 01, 2016
    How do you insert Json converter overrides in the Global.asax’s Application_Start method, when in the XML declaration of Global.asax, you must inherit from Umbraco.Web.UmbracoApplication in order to prevent UmbracoMembership errors? - Further, how do you use this json override to alleviate stack ov…
  • UmbracoRestAPI project - ContentEndpoint escaped JSON object of PropertyEditors that store JSON
    Forum / UmbracoRestAPI project - ContentEndpoint escaped JSON object of PropertyEditors that store JSON
    Created: June 18, 2015 - Last update: June 18, 2015
    Hello, So I have got past the first challenge of using [the new UmbracoRestAPI of retrieving a token to use to authorise against the API endpoint][1]. Now I have got this setup in the HAL Browser as shown in this years CodeGarden Keynote I am starting to play & experiment. I have hit the Content A…
  • Incorrectly being picked up as JSON
    Created: November 30, 2022 - Last update: November 30, 2022
    We have been having a problem with syncing some text fields, which seems to have started sometime around the upgrade to 10.1, although it's taken a while to notice as it only happens when a particular piece of content is updated so that a new uSync export file is created. Basically, we have some st…
  • Read-only JSON property-editor
    Forum / Read-only JSON property-editor
    Created: June 03, 2016 - Last update: July 15, 2016
    Hi all, I have a set of doctypes that I need to migrate from using a **DatePicker** property to using a Calendar property (from the [KS.Umbraco7.Calendar][1] package). I've added the Calendar property but really need to make all of the existing DatePicker values read-only on the existing documents…
  • Get Json object in restExtension method?
    Forum / Get Json object in restExtension method?
    Created: February 11, 2013 - Last update: February 11, 2013
    Hi there, Does anyone know how can I get the json object in the restextension method? My call looks like this:     $.ajax({                 type: 'POST',                 url: '/base/Expenditure/SetExpenditureR…
  • Bad encoding on characters from json
    Created: December 15, 2015 - Last update: December 16, 2015
    Im using the json checkbox, but having trouble with danish characters getting "mangled" somewhere between the json and the umbraco ui... My code: ![enter image description here][1] The json ![enter image description here][2] The UI ![enter image description here][3] [1]: /media/upload/164e8…
  • Having a JSON file for all the data
    Forum / Having a JSON file for all the data
    Created: August 11, 2022 - Last update: August 17, 2022
    Hi Friends I've just started working with Umbraco, So I have a question and I don't know is it possible or not? They asked me to make a JSON file of all the data and use it in Vue file (Fetching data) But I don't know how to make a JSON file from the content and every time they update the content,…
  • Passing JSON object to a surface controller
    Forum / Passing JSON object to a surface controller
    Created: January 14, 2015 - Last update: January 14, 2015
    Hi all, I'm having some issues posting a JSON object to my surface controller using ajax. I have checked in my Firebug Net window and the JSON string is posted in the correct format however, when it gets to the method within my surface controller it is effectively interpreted as null. What am I doi…
  • How to loop &quot;inner&quot; array in json
    Enum lists / Backoffice extensions / Packages / Our
    Created: April 18, 2022 - Last update: April 18, 2022
    Hi forum, I am not an expert in C# nor .NET, but I have managed to get looping array data (courses) in external json to work. Now I am stuck in loop some array inside each course (the classes in the course). Right now I get error "The JSON value could not be converted to MrCourses.ClassesList." i…
  • ColorPicker returns JSON in Razor template
    Forum / ColorPicker returns JSON in Razor template
    Created: April 26, 2020 - Last update: April 26, 2020
    I'm running 7.15.4, and I have ColorPicker property that returns JSON { "label": "White", "value": "ffffff" } According to the documentation `Model.PropertyName` should return the hexValue, but in this case I just get the JSON. Is there a workaround ? Documentation: https://our.umbraco.com/d…
  • SaveLanguageAndDomains returns JSON with lowercase members
    Forum / SaveLanguageAndDomains returns JSON with lowercase members
    Created: August 15, 2016 - Last update: August 26, 2016
    Hello, When doing anything in the "Culture and Hostnames" dialog, the action completes with an error in the front-end. I've tracked it down to AssignDomain2.js assuming a json.Domains member which fails because the actual JSON returned is json.domains (lowercase). Is this due to a faulty update,…
  • JSON error when submit post
    Created: April 17, 2012 - Last update: June 15, 2012
    With last UBlogsy package, I've JSON error when try to submit post. So Umbraco don't publish post. Why?Ok - solved this although I'm not sure whether its the correc thing to do. As this is only happening in IE I found this post:http://www.devcurry.com/2010/12/resolve-json-is-undefined-error-in.html …
  • Creating Web API that returns JSON
    Forum / Creating Web API that returns JSON
    Created: October 02, 2019 - Last update: September 17, 2021
    Hello I need to build Umbraco Web API that will return JSON containing values of created document types, but I can't find any clear explanation on how to do so. I'm relatively new to APIs and I don't know if I need to provide anything else (if I do, please say so and I will). Thanks in advance!You…
  • Grid json issues after upgrade
    Forum / Grid json issues after upgrade
    Created: December 16, 2015 - Last update: December 17, 2015
    Just updated site from umbraco 7.2.8 to 7.3.3 all looking good except for some grid properties that were working are now in the backend reporting Something went wrong with this editor, below is the data stored: The json looks fine its not malformed. Front end all renders fine. Anyone see t…
  • Saving JSON to Xml PrefetchList Picker
    Created: July 29, 2015 - Last update: August 04, 2015
    Hi, I'm using the JSON save format for a member data type based on the Xml PrefetchList Picker nuPicker type. In my code I use JSON.Net to deserialize the picker's value to a list of my custom type: List fromPicker = JsonConvert.DeserializeObject(pickerProperty.Value.ToString()); I then add…
  • Deserialize JSON to ArchetypeModel from IContent?
    Created: January 27, 2016 - Last update: January 27, 2016
    Is there any way at all to deserialize property value from an IContent? I am looking for something similar to IPublishedContent.GetPropertyValue(alias) I know you can use JsonConvert.DeserializeObject(sourceJson) but I also need the PropertyEditorAlias in the fieldsets :(Thanks Kevin. A…
  • Examine JSON search - Autocomplete not working
    Forum / Examine JSON search - Autocomplete not working
    Created: July 15, 2015 - Last update: March 12, 2017
    I have a working search box thanks to the following video tutorial here: http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor-recipes/search/ The problem is, auto complete is not working for me and keeps displaying "No search results." When I type the word "Umbraco" into…
  • Custom Property Editor with valueType JSON
    Forum / Custom Property Editor with valueType JSON
    Created: March 25, 2019 - Last update: April 12, 2019
    Hi there, I'm trying to implement a custom property editor in Umbraco 8. I know that the video on Umbraco.tv is outdated, but I still followed the instructions in https://umbraco.tv/videos/umbraco-v7/developer/extending/property-editors/storing-complex-data/ and created my package manifest where…
  • JSON string converted to [object Object]
    Created: September 21, 2016 - Last update: September 22, 2016
    Hi Richard, I've run into an issue with CMSImport trashing data that I can't find any workaround for - we have a Textbox field on Members which is used to store a JSON string (it doesn't need to be anything fancier than that). This all works fine normally, but when importing member data using CMS…
  • MediaPicker Object to JSON using Serialization
    Forum / MediaPicker Object to JSON using Serialization
    Created: September 12, 2015 - Last update: September 25, 2015
    I'm trying to take a different approach to the same problem I have.... "to convert the entire mediapicker with its contents to a json object" Example: { ['name':'muffin', 'file':'muffin.jpg', 'text':'some text'], ['name':'gargamel', 'file':'smurf.jpg', 'text':'some more text'] } This means…
  • MediaPicker Object to JSON using WebAPI
    Forum / MediaPicker Object to JSON using WebAPI
    Created: August 09, 2015 - Last update: September 16, 2015
    Is it possible to serialize a mediapickers contents to json? So it could be something like this.... Example: { ['name':'muffin', 'file':'muffin.jpg', 'text':'some text'], ['name':'gargamel', 'file':'smurf.jpg', 'text':'some more text'] } I can see around there are ways to convert C# variable…
  • post a json object to a /base function
    Forum / post a json object to a /base function
    Created: August 14, 2011 - Last update: May 08, 2012
    When I post a JSON object to a regular asp.net page method, I can do it like this:   ***client*** function send() {             var myData = '{"title":' + '"' + $("#tiltle-text").val() + '",' +                 '"content":' +…
  • Output JSON from node properties
    Forum / Output JSON from node properties
    Created: January 30, 2014 - Last update: January 30, 2014
    How could I output JSON from node properties? I have the following, but it seems to just wrap the value in quotes, I'm not really sure how to manipulate the string into the proper format (below) Current: @Html.Raw(Json.Encode(@page.uBlogsyPostDate.ToString("yyyy-mm-dd HH:mm"))) which outputs: "2014-…
  • Parse raw JSON grid values
    Forum / Parse raw JSON grid values
    Created: January 11, 2018 - Last update: January 11, 2018
    Good afternoon, Is there a way how to parse raw grid JSON string to HTML on backend? Here is example of json string: { "label": "bodyText", "description": "Load some stuff here", "view": "grid", "config": { "items": { "styles…
  • Getting JSON from an external URL
    Forum / Getting JSON from an external URL
    Created: August 22, 2014 - Last update: August 22, 2014
    I am trying to fetch some JSON from OpenWeatherMap, but i do not get anything returned. The URL i am trying to get JSON from is this: http://api.openweathermap.org/data/2.5/weather?lat=54.941027&lon=8.848902&units=metric&APPID=myAPIkey But if i use another url like umbraco.com it returns the HTML f…
  • Umbraco GMaps Package: JSON Exception
    Forum / Umbraco GMaps Package: JSON Exception
    Created: June 14, 2024 - Last update: June 18, 2024
    Hi, I'm using the Gmaps Package here https://marketplace.umbraco.com/package/our.umbraco.gmaps in my Umbraco 12 site, I've configured the API call within google and update the AppSettings accordingly I've enterted the coordinates of the location but recive the following overlay on the map with the…
  • AngularJsonMediaTypeFormatter generates invalid JSON responses
    Forum / AngularJsonMediaTypeFormatter generates invalid JSON responses
    Created: September 30, 2016 - Last update: February 24, 2022
    Hi, during some investigation of the Umbraco codebase I noticed some weird output in calls to the provisioning endpoints such as /install/api/PostPerformInstall. The response started with the characters )]}', simply a bunch of unwanted closing tags since there are no opening tags. Investigation of…
  • Async post to controller that returns JSon
    Forum / Async post to controller that returns JSon
    Created: September 24, 2017 - Last update: September 27, 2017
    Hi This has been asked before in a previous unsolved thread from 2013, so I wonder if best practice has been figured out since then, or if any new comers could help me out. I am implementing my existing MVC project into Umbraco. In my existing project I have async ajax posts to my controllers…
  • Basket won&#39;t work - json error
    Created: November 12, 2013 - Last update: November 13, 2013
    Hi, Umbraco 6.1 MVC with uCommerce Razor demo store installed. I have my shop located in website/shop and have changed the rewrite a bit to make that work. I get this error when trying to put something in my basket: Failed to load resource: the server responded with a status of 500 (InvalidOperation…
  • Form workflows json files disappears.
    Forum / Form workflows json files disappears.
    Created: November 16, 2016 - Last update: January 17, 2017
    Hi. I´ve noticed this before on another project but eventually it solved itself so I forgot about it, but now it happend again and I wonder what the issue might be. Basicly, i can create form in Umbraco forms, add fields and workflows and everything seems fine. But after a while I get an error say…
  • Related links in partial view - JSON
    Forum / Related links in partial view - JSON
    Created: February 19, 2014 - Last update: February 20, 2014
    I am trying to create a hero Carousel on the home page of my site. I have created a separate document type for the hero slides called 'Hero' that contains a 'Related links' property called **heroLinks**. I have set up my site (via a Multinode Treepicker data type) so that my home page can select a…
  • Why do ezSearch results show json code?
    Forum / Why do ezSearch results show json code?
    Created: December 26, 2017 - Last update: December 30, 2017
    I added ezSearch with the following code: @Umbraco.RenderMacro("ezSearch", new {rootContentNodeId="1094", rootMediaNodeId="", indexType="BOTH", searchFields="", previewFields="", previewLength="", pageSize="100", hideFromSearchField="", searchFormLocation=""}) The search results show something…
  • Render Grid in JSON gives me a weird output
    Forum / Render Grid in JSON gives me a weird output
    Created: December 28, 2019 - Last update: December 29, 2019
    I'm trying to generate a JSON output through a view, but when I do I get this weird output in the content property, a shitload of empty JSON. ![enter image description here][1] If I do the same through a regular view in a textarea I get this, which is what I expect. ![enter image description here][…
  • Return JSON or string from /base extension
    Forum / Return JSON or string from /base extension
    Created: March 21, 2013 - Last update: March 22, 2013
    Hi, I'm building an umbraco /base extension which is called by AJAX.  The javascript is expecting the returned data in JSON format.  Question is, should I just return a string from the base call or should I return a 'proper' JSON object?  If the latter, then how do I do that (I've tri…
  • Unexpected end of multiparty form - json - postsave
    Forum / Unexpected end of multiparty form - json - postsave
    Created: December 10, 2015 - Last update: June 01, 2016
    We are attempting to use the back office api postsave json. Whenever we attempt it we get a 500 error. We have tried changing the mime type, charset adding \r\n to the params but with no luck. The json blob that is used in the grid in 7 has json in a content field and this gets pretty messy we ha…
  • JSON string break in Grid Macro Parameter.
    Created: July 15, 2021 - Last update: July 27, 2021
    Hi I have a grid doctype with certain nested content fields. Upon rendering in the front end I can see that the JSON string is not full. I have added a parameter for macro like this ![enter image description here][1] The code to pass value to the model is ```var modelValue = control.value.value;`…
  • Populate Calendar with JSON problems with converting unixtimestamp
    Forum / Populate Calendar with JSON problems with converting unixtimestamp
    Created: May 07, 2019 - Last update: May 17, 2019
    Hi need some help with dateformat in json feed I have a jquery calendar who i populate in a surfacecontroller. json looks like this. I need help with the date - double timestamp = 1519551404; [{"start":"\/Date(1560981600000)\/","end":"\/Date(1561154400000)\/","title":"header","content":"\some tex…
  • Get All products as a json data in Merchello
    Created: July 31, 2017 - Last update: August 22, 2017
    Hi All, Can someone guide me or advise me how can I get the product lists in Merchello? Basically what I need is to get the products lists(the product name, availability value, image url etc) as a json data. Thanks in advanceHi Alex, I have managed to get the product data as the json in Merchello…
  • Fetch data from JSON or CSV file
    Forum / Fetch data from JSON or CSV file
    Created: July 02, 2014 - Last update: July 02, 2014
    Hello, I have file available in two formats: JSON and CSV. As I understand work with JSON more easily nether than CSV. Could you please advice how work with that format. File contains this kind of information: "name": "Films", "count": 84, "frequency": "realtime", "version": 1, "newdata": tr…
  • SurfaceController ActionResult returns wrong JSON format
    Forum / SurfaceController ActionResult returns wrong JSON format
    Created: January 08, 2014 - Last update: July 06, 2016
    Hello, I've got a SurfaceController with an ActionResult that returns JSON, but the JSON is in the wrong format. I know I could also use the WebAPI to return JSON, but that is stateless and I'm using a session in this method.  Here is my ActionResult: public class JsonController…

Code Of Conduct - Privacy Policy

 

Our.umbraco.com is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.